Skip to content

Commit bd11c30

Browse files
authored
Merge pull request #40029 from eeckstein/enable-libswift-bootstrapping
build: enable libswift bootstrapping by default
2 parents 165c9b6 + 116a5b0 commit bd11c30

File tree

2 files changed

+22
-9
lines changed

2 files changed

+22
-9
lines changed

utils/build-presets.ini

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,6 @@ install-swiftpm
372372
install-swift-driver
373373
install-libcxx
374374

375-
libswift=bootstrapping
376-
377375
[preset: buildbot_incremental,tools=RA,stdlib=RA,apple_silicon]
378376
mixin-preset=buildbot_incremental,tools=RA,stdlib=RA
379377

@@ -578,6 +576,9 @@ enable-asan
578576

579577
swift-stdlib-build-type=RelWithDebInfo
580578

579+
# Don't do bootstrapping to speed up the build
580+
libswift=hosttools
581+
581582

582583
[preset: buildbot_incremental,tools=RA,stdlib=RD,smoketest=macosx]
583584
mixin-preset=
@@ -650,8 +651,8 @@ skip-build-benchmarks
650651
# Skip playground tests
651652
skip-test-playgroundsupport
652653

653-
# Enable libswift
654-
libswift
654+
# Don't do bootstrapping to speed up the build
655+
libswift=hosttools
655656

656657
[preset: buildbot_incremental,tools=RA,stdlib=RD,smoketest=macosx,flto]
657658
mixin-preset=buildbot_incremental,tools=RA,stdlib=RD,smoketest=macosx
@@ -1405,6 +1406,10 @@ debug-llvm
14051406
debug-swift
14061407
no-swift-stdlib-assertions
14071408

1409+
# Don't do bootstrapping to speed up the build
1410+
libswift=hosttools
1411+
1412+
14081413
[preset: buildbot_osx_package,tools=DA,stdlib=R,use_os_runtime]
14091414
mixin-preset=
14101415
buildbot_osx_package,tools=DA,stdlib=R
@@ -1556,8 +1561,8 @@ build-swift-stdlib-unittest-extra
15561561

15571562
libcxx
15581563

1559-
# Enable libswift
1560-
libswift
1564+
# Don't do bootstrapping to speed up the build
1565+
libswift=hosttools
15611566

15621567
# Build llbuild & swiftpm here
15631568
llbuild
@@ -2274,6 +2279,10 @@ assertions
22742279
debug-llvm
22752280
debug-swift
22762281

2282+
# Don't do bootstrapping to speed up the build
2283+
libswift=hosttools
2284+
2285+
22772286
#===------------------------------------------------------------------------===#
22782287
# Swift Preset
22792288
# Tools: DebInfo and Assertions
@@ -2291,6 +2300,10 @@ debug-swift
22912300
swift-stdlib-build-type=RelWithDebInfo
22922301
swift-stdlib-enable-assertions=true
22932302

2303+
# Don't do bootstrapping to speed up the build
2304+
libswift=hosttools
2305+
2306+
22942307
#===------------------------------------------------------------------------===#
22952308
# Swift Coverage Preset
22962309
#===------------------------------------------------------------------------===#

utils/build-script-impl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -358,11 +358,11 @@ function true_false() {
358358

359359
function to_libswift_buildmode() {
360360
case "$1" in
361-
false | FALSE | 0 | "")
361+
false | FALSE | 0)
362362
echo "OFF"
363363
;;
364-
true | TRUE | 1)
365-
echo "HOSTTOOLS"
364+
true | TRUE | 1 | "")
365+
echo "BOOTSTRAPPING"
366366
;;
367367
*)
368368
echo `toupper $1`

0 commit comments

Comments
 (0)