mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #2470 from seabaylea/dispatch-xctest
This commit is contained in:
@@ -2095,6 +2095,13 @@ for host in "${ALL_HOSTS[@]}"; do
|
||||
SWIFTC_BIN="$(build_directory_bin ${LOCAL_HOST} swift)/swiftc"
|
||||
XCTEST_BUILD_DIR=$(build_directory ${host} xctest)
|
||||
FOUNDATION_BUILD_DIR=$(build_directory ${host} foundation)
|
||||
|
||||
# Staging: require opt-in for building with dispatch
|
||||
if [[ ! "${SKIP_BUILD_LIBDISPATCH}" ]] ; then
|
||||
LIBDISPATCH_BUILD_DIR="$(build_directory ${host} libdispatch)"
|
||||
LIBDISPATCH_BUILD_ARGS="--libdispatch-src-dir=${LIBDISPATCH_SOURCE_DIR} --libdispatch-build-dir=${LIBDISPATCH_BUILD_DIR}"
|
||||
fi
|
||||
|
||||
if [[ "$(uname -s)" == "Darwin" ]] ; then
|
||||
# xcodebuild requires swift-stdlib-tool to build a Swift
|
||||
# framework. This is normally present when building XCTest
|
||||
@@ -2109,7 +2116,8 @@ for host in "${ALL_HOSTS[@]}"; do
|
||||
call "${XCTEST_SOURCE_DIR}"/build_script.py \
|
||||
--swiftc="${SWIFTC_BIN}" \
|
||||
--build-dir="${XCTEST_BUILD_DIR}" \
|
||||
--foundation-build-dir="${FOUNDATION_BUILD_DIR}/Foundation"
|
||||
--foundation-build-dir="${FOUNDATION_BUILD_DIR}/Foundation" \
|
||||
$LIBDISPATCH_BUILD_ARGS
|
||||
|
||||
# XCTest builds itself and doesn't rely on cmake
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user