@@ -72,6 +72,7 @@ KNOWN_SETTINGS=(
72
72
lldb-build-type " Debug" " the CMake build variant for LLDB"
73
73
llbuild-build-type " Debug" " the CMake build variant for llbuild"
74
74
foundation-build-type " Debug" " the build variant for Foundation"
75
+ libdispatch-build-type " Debug" " the build variant for libdispatch"
75
76
playgroundlogger-build-type " Debug" " the build variant for PlaygroundLogger"
76
77
playgroundsupport-build-type " Debug" " the build variant for PlaygroundSupport"
77
78
xctest-build-type " Debug" " the build variant for xctest"
@@ -1466,7 +1467,7 @@ function build_directory_bin() {
1466
1467
echo " ${root} /${FOUNDATION_BUILD_TYPE} /bin"
1467
1468
;;
1468
1469
libdispatch)
1469
- echo " ${root} /bin"
1470
+ echo " ${root} /${LIBDISPATCH_BUILD_TYPE} / bin"
1470
1471
;;
1471
1472
playgroundlogger)
1472
1473
# FIXME: var name for build type
@@ -2255,12 +2256,20 @@ for host in "${ALL_HOSTS[@]}"; do
2255
2256
2256
2257
if [[ ! -f " ${LIBDISPATCH_BUILD_DIR} " /config.status ]]; then
2257
2258
# First time building; need to run autotools and configure
2259
+ if [[ " $LIBDISPATCH_BUILD_TYPE " == " Release" ]] ; then
2260
+ dispatch_build_variant_arg=" release"
2261
+ elif [[ " $LIBDISPATCH_BUILD_TYPE " == " RelWithDebInfo" ]]; then
2262
+ dispatch_build_variant_arg=" releasedebuginfo"
2263
+ else
2264
+ dispatch_build_variant_arg=" debug"
2265
+ fi
2258
2266
call mkdir -p " ${LIBDISPATCH_BUILD_DIR} "
2259
2267
with_pushd " ${LIBDISPATCH_SOURCE_DIR} " \
2260
2268
call autoreconf -fvi
2261
2269
with_pushd " ${LIBDISPATCH_BUILD_DIR} " \
2262
2270
call env CC=" ${LLVM_BIN} /clang" CXX=" ${LLVM_BIN} /clang++" SWIFTC=" ${SWIFTC_BIN} " \
2263
2271
" ${LIBDISPATCH_SOURCE_DIR} " /configure --with-swift-toolchain=" ${SWIFT_BUILD_PATH} " \
2272
+ --with-build-variant=$dispatch_build_variant_arg \
2264
2273
--prefix=" $( get_host_install_destdir ${host} ) $( get_host_install_prefix ${host} ) "
2265
2274
2266
2275
fi
0 commit comments