Skip to content

Commit 59a7c73

Browse files
authored
Merge pull request #4203 from phausler/build_libdispatch_by_default
build libdispatch by default in both linux build bot configurations
2 parents 1e53c39 + 3951bf8 commit 59a7c73

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

utils/build-presets.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,11 +645,13 @@ test
645645
validation-test
646646
long-test
647647
foundation
648+
libdispatch
648649
lit-args=-v
649650

650651
dash-dash
651652

652653
install-foundation
654+
install-libdispatch
653655
reconfigure
654656

655657
# Ubuntu 16.04 preset for backwards compat and future customizations.
@@ -731,6 +733,7 @@ llbuild
731733
swiftpm
732734
xctest
733735
foundation
736+
libdispatch
734737
dash-dash
735738

736739
[preset: buildbot_incremental_linux,long_test]

utils/build-script-impl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2363,7 +2363,8 @@ for host in "${ALL_HOSTS[@]}"; do
23632363
SWIFTC_BIN="$(build_directory_bin ${LOCAL_HOST} swift)/swiftc"
23642364
LLVM_BIN="$(build_directory_bin ${LOCAL_HOST} llvm)"
23652365

2366-
if [[ ! -f "${LIBDISPATCH_BUILD_DIR}"/config.status ]]; then
2366+
if [[ "${RECONFIGURE}" || ! -f "${LIBDISPATCH_BUILD_DIR}"/config.status ]]; then
2367+
echo "Reconfiguring libdispatch"
23672368
# First time building; need to run autotools and configure
23682369
if [[ "$LIBDISPATCH_BUILD_TYPE" == "Release" ]] ; then
23692370
dispatch_build_variant_arg="release"
@@ -2380,7 +2381,8 @@ for host in "${ALL_HOSTS[@]}"; do
23802381
"${LIBDISPATCH_SOURCE_DIR}"/configure --with-swift-toolchain="${SWIFT_BUILD_PATH}" \
23812382
--with-build-variant=$dispatch_build_variant_arg \
23822383
--prefix="$(get_host_install_destdir ${host})$(get_host_install_prefix ${host})"
2383-
2384+
else
2385+
echo "Skipping reconfiguration of libdispatch"
23842386
fi
23852387
with_pushd "${LIBDISPATCH_BUILD_DIR}" \
23862388
call make

0 commit comments

Comments
 (0)