@@ -246,6 +246,7 @@ Phew, that's a lot to digest! Now let's proceed to the actual build itself!
246
246
[using both Ninja and Xcode](# using-both-ninja-and-xcode).
247
247
3. Build the toolchain with optimizations, debuginfo, and assertions and run
248
248
the tests.
249
+ macOS:
249
250
- Via Ninja:
250
251
` ` ` sh
251
252
utils/build-script --skip-build-benchmarks \
@@ -259,10 +260,14 @@ Phew, that's a lot to digest! Now let's proceed to the actual build itself!
259
260
--sccache --release-debuginfo --swift-disable-dead-stripping --test \
260
261
--xcode
261
262
` ` `
263
+ Linux (uses Ninja):
264
+ ` ` ` sh
265
+ utils/build-script --release-debuginfo --test --skip-early-swift-driver
266
+ ` ` `
262
267
This will create a directory
263
268
` swift-project/build/Ninja-RelWithDebInfoAssert`
264
269
(with ` Xcode` instead of ` Ninja` if you used ` --xcode` )
265
- containing the build artifacts.
270
+ containing the Swift compiler and standard library and clang/LLVM build artifacts.
266
271
- If the build succeeds: Once the build is complete, the tests will run.
267
272
- If the tests are passing: Great! We can go to the next step.
268
273
- If some tests are failing:
@@ -272,6 +277,10 @@ Phew, that's a lot to digest! Now let's proceed to the actual build itself!
272
277
- If the build fails:
273
278
See [Troubleshooting build issues](# troubleshooting-build-issues).
274
279
280
+ If you would like to additionally build the Swift corelibs,
281
+ ie swift-corelibs-libdispatch, swift-corelibs-foundation, and swift-corelibs-xctest,
282
+ on Linux, add the ` --xctest` flag to ` build-script` .
283
+
275
284
In the following sections, for simplicity, we will assume that you are using a
276
285
` Ninja-RelWithDebInfoAssert` build on macOS running on an Intel-based Mac,
277
286
unless explicitly mentioned otherwise. You will need to slightly tweak the paths
0 commit comments