Skip to content

Commit 60b2c30

Browse files
committed
Merge pull request #2137 from apple/use-xctest-build-dir
[build-script] Use the correct build directory when building Darwin XCTest
2 parents 8b65fb1 + 1288da2 commit 60b2c30

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

utils/build-script-impl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1953,16 +1953,14 @@ for deployment_target in "${HOST_TARGET}" "${CROSS_TOOLS_DEPLOYMENT_TARGETS[@]}"
19531953
# result, we must copy swift-stdlib-tool ourselves.
19541954
copy_swift_stdlib_tool_substitute "$(build_directory_bin ${deployment_target} swift)/swift-stdlib-tool"
19551955

1956-
# The Linux build places build products in the
1957-
# XCTEST_BUILD_DIR. This, and installation of XCTest in
1958-
# general, is not supported on OS X.
19591956
set -x
19601957
xcodebuild \
19611958
-workspace "${XCTEST_SOURCE_DIR}"/XCTest.xcworkspace \
19621959
-scheme SwiftXCTest \
19631960
SWIFT_EXEC="${SWIFTC_BIN}" \
19641961
SWIFT_LINK_OBJC_RUNTIME=YES \
1965-
DSTROOT="${XCTEST_BUILD_DIR}"
1962+
SYMROOT="${XCTEST_BUILD_DIR}" \
1963+
OBJROOT="${XCTEST_BUILD_DIR}"
19661964
{ set +x; } 2>/dev/null
19671965
else
19681966
FOUNDATION_BUILD_DIR=$(build_directory ${deployment_target} foundation)
@@ -2252,7 +2250,9 @@ for deployment_target in "${STDLIB_DEPLOYMENT_TARGETS[@]}"; do
22522250
-workspace "${XCTEST_SOURCE_DIR}"/XCTest.xcworkspace \
22532251
-scheme SwiftXCTestFunctionalTests \
22542252
SWIFT_EXEC="${SWIFTC_BIN}" \
2255-
SWIFT_LINK_OBJC_RUNTIME=YES
2253+
SWIFT_LINK_OBJC_RUNTIME=YES \
2254+
SYMROOT="${XCTEST_BUILD_DIR}" \
2255+
OBJROOT="${XCTEST_BUILD_DIR}"
22562256
{ set +x; } 2>/dev/null
22572257
else
22582258
FOUNDATION_BUILD_DIR=$(build_directory ${deployment_target} foundation)

0 commit comments

Comments
 (0)