File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1900,19 +1900,20 @@ for deployment_target in "${HOST_TARGET}" "${CROSS_TOOLS_DEPLOYMENT_TARGETS[@]}"
1900
1900
continue
1901
1901
;;
1902
1902
xctest)
1903
+ SWIFTC_BIN=" $( build_directory_bin ${deployment_target} swift) /swiftc"
1903
1904
XCTEST_BUILD_DIR=$( build_directory ${deployment_target} xctest)
1904
1905
if [[ " $( uname -s) " == " Darwin" ]] ; then
1905
1906
set -x
1906
1907
xcodebuild \
1907
1908
-workspace " ${XCTEST_SOURCE_DIR} " /XCTest.xcworkspace \
1908
1909
-scheme SwiftXCTest \
1910
+ SWIFT_EXEC=" ${SWIFTC_BIN} " \
1909
1911
SKIP_INSTALL=NO \
1910
1912
DEPLOYMENT_LOCATION=YES \
1911
1913
DSTROOT=" ${XCTEST_BUILD_DIR} " \
1912
1914
INSTALL_PATH=" /"
1913
1915
{ set +x; } 2> /dev/null
1914
1916
else
1915
- SWIFTC_BIN=" $( build_directory_bin ${deployment_target} swift) /swiftc"
1916
1917
FOUNDATION_BUILD_DIR=$( build_directory ${deployment_target} foundation)
1917
1918
set -x
1918
1919
# FIXME: Use XCTEST_BUILD_TYPE (which is never properly
@@ -2168,14 +2169,15 @@ for deployment_target in "${STDLIB_DEPLOYMENT_TARGETS[@]}"; do
2168
2169
continue
2169
2170
fi
2170
2171
echo " --- Running tests for ${product} ---"
2172
+ SWIFTC_BIN=" $( build_directory_bin ${deployment_target} swift) /swiftc"
2171
2173
if [[ " $( uname -s) " == " Darwin" ]] ; then
2172
2174
set -x
2173
2175
xcodebuild \
2174
2176
-workspace " ${XCTEST_SOURCE_DIR} " /XCTest.xcworkspace \
2175
- -scheme SwiftXCTestFunctionalTests
2177
+ -scheme SwiftXCTestFunctionalTests \
2178
+ SWIFT_EXEC=" ${SWIFTC_BIN} "
2176
2179
{ set +x; } 2> /dev/null
2177
2180
else
2178
- SWIFTC_BIN=" $( build_directory_bin ${deployment_target} swift) /swiftc"
2179
2181
FOUNDATION_BUILD_DIR=$( build_directory ${deployment_target} foundation)
2180
2182
XCTEST_BUILD_DIR=$( build_directory ${deployment_target} xctest)
2181
2183
set -x
You can’t perform that action at this time.
0 commit comments