@@ -83,6 +83,9 @@ KNOWN_SETTINGS=(
83
83
xctest-build-type " Debug" " the build variant for xctest"
84
84
swiftpm-build-type " Debug" " the build variant for swiftpm"
85
85
swiftsyntax-build-type " Debug" " the build variant for swiftSyntax"
86
+ # When this flag is set, the build-script will only build/install the swift-syntax parser
87
+ # This is a temporary workaround of having a separate build product for swift-syntax parser
88
+ skip-swiftsyntax-swiftside " " " skip building/installing the swift side of swiftsyntax"
86
89
skstresstester-build-type " Debug" " the build variant for the SourceKit stress tester"
87
90
swiftevolve-build-type " Debug" " the build variant for the swift-evolve tool"
88
91
llbuild-enable-assertions " 1" " enable assertions in llbuild"
@@ -2596,6 +2599,9 @@ for host in "${ALL_HOSTS[@]}"; do
2596
2599
continue
2597
2600
;;
2598
2601
swiftsyntax)
2602
+ if [[ " ${SKIP_SWIFTSYNTAX_SWIFTSIDE} " ]]; then
2603
+ continue
2604
+ fi
2599
2605
set_swiftsyntax_build_command
2600
2606
call " ${swiftsyntax_build_command[@]} "
2601
2607
@@ -3600,7 +3606,9 @@ for host in "${ALL_HOSTS[@]}"; do
3600
3606
DYLIB_DIR=" ${host_install_destdir}${host_install_prefix} /lib/swift/${SWIFT_HOST_VARIANT} "
3601
3607
MODULE_DIR=" ${DYLIB_DIR} /${SWIFT_HOST_VARIANT_ARCH} "
3602
3608
fi
3603
-
3609
+ if [[ " ${SKIP_SWIFTSYNTAX_SWIFTSIDE} " ]]; then
3610
+ continue
3611
+ fi
3604
3612
set_swiftsyntax_build_command
3605
3613
if [[ -z " ${SKIP_INSTALL_SWIFTSYNTAX_MODULE} " ]] ; then
3606
3614
call " ${swiftsyntax_build_command[@]} " --dylib-dir=" ${DYLIB_DIR} " --swiftmodule-dir " ${MODULE_DIR} " --install
0 commit comments