Skip to content

Commit 7d18161

Browse files
committed
Add additional swiftc flags for adding the XCTest module path when configuring Foundation
This allows for the unit tests to properly find the module map file for XCTest; this requires Foundation commit 3effff to properly forward the extra swiftc flags to building the unit tests.
1 parent 159eab1 commit 7d18161

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/build-script-impl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1723,7 +1723,7 @@ for deployment_target in "${NATIVE_TOOLS_DEPLOYMENT_TARGETS[@]}" "${CROSS_TOOLS_
17231723
set -x
17241724
pushd "${FOUNDATION_SOURCE_DIR}"
17251725
SWIFTC="${SWIFTC_BIN}" CLANG="${LLVM_BIN}"/clang SWIFT="${SWIFT_BIN}" \
1726-
SDKROOT="${SWIFT_BUILD_PATH}" BUILD_DIR="${build_dir}" DSTROOT="${INSTALL_DESTDIR}" PREFIX="${INSTALL_PREFIX}" LDFLAGS="-L${XCTEST_BUILD_DIR}" ./configure "${FOUNDATION_BUILD_TYPE}"
1726+
SDKROOT="${SWIFT_BUILD_PATH}" BUILD_DIR="${build_dir}" DSTROOT="${INSTALL_DESTDIR}" PREFIX="${INSTALL_PREFIX}" SWIFTCFLAGS="-I${XCTEST_BUILD_DIR}" LDFLAGS="-L${XCTEST_BUILD_DIR}" ./configure "${FOUNDATION_BUILD_TYPE}"
17271727
$NINJA_BIN
17281728
popd
17291729
{ set +x; } 2>/dev/null

0 commit comments

Comments
 (0)