File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -591,6 +591,7 @@ class BuildScriptInvocation(object):
591
591
"--libdispatch-build-type" , args .libdispatch_build_variant ,
592
592
"--libicu-build-type" , args .libicu_build_variant ,
593
593
"--xctest-build-type" , args .build_variant ,
594
+ "--swiftpm-build-type" , args .build_variant ,
594
595
"--swift-enable-assertions" , str (args .swift_assertions ).lower (),
595
596
"--swift-stdlib-enable-assertions" , str (
596
597
args .swift_stdlib_assertions ).lower (),
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ KNOWN_SETTINGS=(
78
78
playgroundlogger-build-type " Debug" " the build variant for PlaygroundLogger"
79
79
playgroundsupport-build-type " Debug" " the build variant for PlaygroundSupport"
80
80
xctest-build-type " Debug" " the build variant for xctest"
81
+ swiftpm-build-type " Debug" " the build variant for swiftpm"
81
82
llbuild-enable-assertions " 1" " enable assertions in llbuild"
82
83
enable-asan " " " enable Address Sanitizer"
83
84
cmake " " " path to the cmake binary"
@@ -1755,6 +1756,10 @@ function set_swiftpm_bootstrap_command() {
1755
1756
exit 1
1756
1757
fi
1757
1758
swiftpm_bootstrap_command=(" ${SWIFTPM_SOURCE_DIR} /Utilities/bootstrap" " ${swiftpm_bootstrap_options[@]} " )
1759
+ # Add --release if we have to build in release mode.
1760
+ if [[ " ${SWIFTPM_BUILD_TYPE} " == " Release" ]] ; then
1761
+ swiftpm_bootstrap_command+=(--release)
1762
+ fi
1758
1763
if [[ " ${VERBOSE_BUILD} " ]] ; then
1759
1764
swiftpm_bootstrap_command+=(-v)
1760
1765
fi
You can’t perform that action at this time.
0 commit comments