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 @@ -2087,6 +2087,13 @@ for host in "${ALL_HOSTS[@]}"; do
2087
2087
SWIFTC_BIN=" $( build_directory_bin ${LOCAL_HOST} swift) /swiftc"
2088
2088
XCTEST_BUILD_DIR=$( build_directory ${host} xctest)
2089
2089
FOUNDATION_BUILD_DIR=$( build_directory ${host} foundation)
2090
+
2091
+ # Staging: require opt-in for building with dispatch
2092
+ if [[ ! " ${SKIP_BUILD_LIBDISPATCH} " ]] ; then
2093
+ LIBDISPATCH_BUILD_DIR=" $( build_directory ${host} libdispatch) "
2094
+ LIBDISPATCH_BUILD_ARGS=" --libdispatch-src-dir=${LIBDISPATCH_SOURCE_DIR} --libdispatch-build-dir=${LIBDISPATCH_BUILD_DIR} "
2095
+ fi
2096
+
2090
2097
if [[ " $( uname -s) " == " Darwin" ]] ; then
2091
2098
# xcodebuild requires swift-stdlib-tool to build a Swift
2092
2099
# framework. This is normally present when building XCTest
@@ -2101,7 +2108,8 @@ for host in "${ALL_HOSTS[@]}"; do
2101
2108
call " ${XCTEST_SOURCE_DIR} " /build_script.py \
2102
2109
--swiftc=" ${SWIFTC_BIN} " \
2103
2110
--build-dir=" ${XCTEST_BUILD_DIR} " \
2104
- --foundation-build-dir=" ${FOUNDATION_BUILD_DIR} /Foundation"
2111
+ --foundation-build-dir=" ${FOUNDATION_BUILD_DIR} /Foundation" \
2112
+ $LIBDISPATCH_BUILD_ARGS
2105
2113
2106
2114
# XCTest builds itself and doesn't rely on cmake
2107
2115
continue
You can’t perform that action at this time.
0 commit comments