File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -1107,7 +1107,11 @@ skip-test-llbuild
1107
1107
skip-test-lldb
1108
1108
skip-test-cmark
1109
1109
skip-test-playgroundsupport
1110
+ skip-test-swiftsyntax
1110
1111
1112
+ swiftsyntax
1113
+ install-swiftsyntax
1114
+ skip-install-swiftsyntax-module
1111
1115
1112
1116
# ===------------------------------------------------------------------------===#
1113
1117
# LLDB build configurations
Original file line number Diff line number Diff line change @@ -191,6 +191,8 @@ KNOWN_SETTINGS=(
191
191
install-lldb " " " whether to install LLDB"
192
192
install-llbuild " " " whether to install llbuild"
193
193
install-swiftpm " " " whether to install swiftpm"
194
+ install-swiftsyntax " " " whether to install swiftsyntax"
195
+ skip-install-swiftsyntax-module " " " set to skip installing swiftsyntax modules"
194
196
install-xctest " " " whether to install xctest"
195
197
install-foundation " " " whether to install foundation"
196
198
install-libdispatch " " " whether to install libdispatch"
@@ -3306,7 +3308,22 @@ for host in "${ALL_HOSTS[@]}"; do
3306
3308
continue
3307
3309
;;
3308
3310
swiftsyntax)
3309
- # SwiftSyntax is not installed as part of the toolchain
3311
+ if [[ -z " ${INSTALL_SWIFTSYNTAX} " ]] ; then
3312
+ continue
3313
+ fi
3314
+ if [[ -z " ${INSTALL_DESTDIR} " ]] ; then
3315
+ echo " --install-destdir is required to install products."
3316
+ exit 1
3317
+ fi
3318
+ echo " --- Installing ${product} ---"
3319
+ DYLIB_DIR=" ${host_install_destdir}${host_install_prefix} /lib/swift/${SWIFT_HOST_VARIANT} "
3320
+ MODULE_DIR=" ${DYLIB_DIR} /${SWIFT_HOST_VARIANT_ARCH} "
3321
+ if [[ -z " ${SKIP_INSTALL_SWIFTSYNTAX_MODULE} " ]] ; then
3322
+ call " ${swiftsyntax_build_command[@]} " --dylib-dir=" ${DYLIB_DIR} " --swiftmodule-dir " ${MODULE_DIR} " --install
3323
+ else
3324
+ call " ${swiftsyntax_build_command[@]} " --dylib-dir=" ${DYLIB_DIR} " --install
3325
+ fi
3326
+
3310
3327
continue
3311
3328
;;
3312
3329
xctest)
You can’t perform that action at this time.
0 commit comments