@@ -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"
@@ -2542,6 +2545,9 @@ for host in "${ALL_HOSTS[@]}"; do
2542
2545
continue
2543
2546
;;
2544
2547
swiftsyntax)
2548
+ if [[ " ${SKIP_SWIFTSYNTAX_SWIFTSIDE} " ]]; then
2549
+ continue
2550
+ fi
2545
2551
set_swiftsyntax_build_command
2546
2552
call " ${swiftsyntax_build_command[@]} "
2547
2553
@@ -3548,7 +3554,9 @@ for host in "${ALL_HOSTS[@]}"; do
3548
3554
DYLIB_DIR=" ${host_install_destdir}${host_install_prefix} /lib/swift/${SWIFT_HOST_VARIANT} "
3549
3555
MODULE_DIR=" ${DYLIB_DIR} /${SWIFT_HOST_VARIANT_ARCH} "
3550
3556
fi
3551
-
3557
+ if [[ " ${SKIP_SWIFTSYNTAX_SWIFTSIDE} " ]]; then
3558
+ continue
3559
+ fi
3552
3560
set_swiftsyntax_build_command
3553
3561
if [[ -z " ${SKIP_INSTALL_SWIFTSYNTAX_MODULE} " ]] ; then
3554
3562
call " ${swiftsyntax_build_command[@]} " --dylib-dir=" ${DYLIB_DIR} " --swiftmodule-dir " ${MODULE_DIR} " --install
0 commit comments