Skip to content

Commit f2229c4

Browse files
authored
Merge pull request #27566 from ahoppen/install-swiftsyntax-module
[build-script] Pass updated arguments to SwiftSyntax's build script
2 parents 91669ce + c4814cb commit f2229c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utils/build-script-impl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3445,7 +3445,7 @@ for host in "${ALL_HOSTS[@]}"; do
34453445
if [ "${BUILD_LIBPARSER_ONLY}" ]; then
34463446
# We don't have a toolchain so we should install to the specified dir
34473447
DYLIB_DIR="${INSTALL_DESTDIR}"
3448-
MODULE_DIR="${INSTALL_DESTDIR}"
3448+
MODULE_DIR="${INSTALL_DESTDIR}/${product}.swiftmodule/${SWIFT_HOST_VARIANT_ARCH}"
34493449
# Create the install dir if it doesn't exist
34503450
call mkdir -p "${INSTALL_DESTDIR}"
34513451
# Install libParser is necessary
@@ -3455,14 +3455,14 @@ for host in "${ALL_HOSTS[@]}"; do
34553455
else
34563456
# We have a toolchain so install to the toolchain
34573457
DYLIB_DIR="${host_install_destdir}${host_install_prefix}/lib/swift/${SWIFT_HOST_VARIANT}"
3458-
MODULE_DIR="${DYLIB_DIR}/${SWIFT_HOST_VARIANT_ARCH}"
3458+
MODULE_DIR="${DYLIB_DIR}/${product}.swiftmodule/${SWIFT_HOST_VARIANT_ARCH}"
34593459
fi
34603460
if [[ "${SKIP_SWIFTSYNTAX_SWIFTSIDE}" ]]; then
34613461
continue
34623462
fi
34633463
set_swiftsyntax_build_command
34643464
if [[ -z "${SKIP_INSTALL_SWIFTSYNTAX_MODULE}" ]] ; then
3465-
call "${swiftsyntax_build_command[@]}" --dylib-dir="${DYLIB_DIR}" --swiftmodule-dir "${MODULE_DIR}" --install
3465+
call "${swiftsyntax_build_command[@]}" --dylib-dir="${DYLIB_DIR}" --swiftmodule-base-name "${MODULE_DIR}" --install
34663466
else
34673467
call "${swiftsyntax_build_command[@]}" --dylib-dir="${DYLIB_DIR}" --install
34683468
fi

0 commit comments

Comments
 (0)