Skip to content

Commit f9d7ac7

Browse files
authored
Merge pull request #61511 from buttaface/doc
[docs] fix formatting for GettingStarted.md and add needed flag for linux
2 parents 6519524 + f0dcc48 commit f9d7ac7

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

docs/HowToGuides/GettingStarted.md

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -240,25 +240,26 @@ Phew, that's a lot to digest! Now let's proceed to the actual build itself!
240240
[using both Ninja and Xcode](#using-both-ninja-and-xcode).
241241
3. Build the toolchain with optimizations, debuginfo, and assertions and run
242242
the tests.
243-
macOS:
244-
- Via Ninja:
243+
- macOS:
244+
- Via Ninja:
245+
```sh
246+
utils/build-script --skip-build-benchmarks \
247+
--skip-ios --skip-watchos --skip-tvos --swift-darwin-supported-archs "$(uname -m)" \
248+
--sccache --release-debuginfo --swift-disable-dead-stripping --test
249+
```
250+
- Via Xcode:
251+
```sh
252+
utils/build-script --skip-build-benchmarks \
253+
--skip-ios --skip-watchos --skip-tvos --swift-darwin-supported-archs "$(uname -m)" \
254+
--sccache --release-debuginfo --swift-disable-dead-stripping \
255+
--xcode
256+
```
257+
**Note:** Building `--xcode` together with `--test` is a common source of issues. So to run
258+
tests is recommended to use `ninja` because is normally more stable.
259+
- Linux (uses Ninja):
245260
```sh
246-
utils/build-script --skip-build-benchmarks \
247-
--skip-ios --skip-watchos --skip-tvos --swift-darwin-supported-archs "$(uname -m)" \
248-
--sccache --release-debuginfo --swift-disable-dead-stripping --test
249-
```
250-
- Via Xcode:
251-
```sh
252-
utils/build-script --skip-build-benchmarks \
253-
--skip-ios --skip-watchos --skip-tvos --swift-darwin-supported-archs "$(uname -m)" \
254-
--sccache --release-debuginfo --swift-disable-dead-stripping \
255-
--xcode
256-
```
257-
**Note:** Building `--xcode` together with `--test` is a common source of issues. So to run
258-
tests is recommended to use `ninja` because is normally more stable.
259-
Linux (uses Ninja):
260-
```sh
261-
utils/build-script --release-debuginfo --test --skip-early-swift-driver
261+
utils/build-script --release-debuginfo --test --skip-early-swift-driver \
262+
--skip-early-swiftsyntax
262263
```
263264
This will create a directory
264265
`swift-project/build/Ninja-RelWithDebInfoAssert`

0 commit comments

Comments
 (0)