@@ -240,25 +240,26 @@ Phew, that's a lot to digest! Now let's proceed to the actual build itself!
240
240
[ using both Ninja and Xcode] ( #using-both-ninja-and-xcode ) .
241
241
3 . Build the toolchain with optimizations, debuginfo, and assertions and run
242
242
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):
245
260
` ` ` 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
262
263
` ` `
263
264
This will create a directory
264
265
` swift-project/build/Ninja-RelWithDebInfoAssert`
0 commit comments