File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -2095,6 +2095,13 @@ for host in "${ALL_HOSTS[@]}"; do
2095
2095
SWIFTC_BIN=" $( build_directory_bin ${LOCAL_HOST} swift) /swiftc"
2096
2096
XCTEST_BUILD_DIR=$( build_directory ${host} xctest)
2097
2097
FOUNDATION_BUILD_DIR=$( build_directory ${host} foundation)
2098
+
2099
+ # Staging: require opt-in for building with dispatch
2100
+ if [[ ! " ${SKIP_BUILD_LIBDISPATCH} " ]] ; then
2101
+ LIBDISPATCH_BUILD_DIR=" $( build_directory ${host} libdispatch) "
2102
+ LIBDISPATCH_BUILD_ARGS=" --libdispatch-src-dir=${LIBDISPATCH_SOURCE_DIR} --libdispatch-build-dir=${LIBDISPATCH_BUILD_DIR} "
2103
+ fi
2104
+
2098
2105
if [[ " $( uname -s) " == " Darwin" ]] ; then
2099
2106
# xcodebuild requires swift-stdlib-tool to build a Swift
2100
2107
# framework. This is normally present when building XCTest
@@ -2109,7 +2116,8 @@ for host in "${ALL_HOSTS[@]}"; do
2109
2116
call " ${XCTEST_SOURCE_DIR} " /build_script.py \
2110
2117
--swiftc=" ${SWIFTC_BIN} " \
2111
2118
--build-dir=" ${XCTEST_BUILD_DIR} " \
2112
- --foundation-build-dir=" ${FOUNDATION_BUILD_DIR} /Foundation"
2119
+ --foundation-build-dir=" ${FOUNDATION_BUILD_DIR} /Foundation" \
2120
+ $LIBDISPATCH_BUILD_ARGS
2113
2121
2114
2122
# XCTest builds itself and doesn't rely on cmake
2115
2123
continue
You can’t perform that action at this time.
0 commit comments