File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -2407,6 +2407,14 @@ for host in "${ALL_HOSTS[@]}"; do
2407
2407
LIBDISPATCH_BUILD_DIR=" $( build_directory ${host} libdispatch) "
2408
2408
LIBDISPATCH_BUILD_ARGS=" --libdispatch-src-dir=${LIBDISPATCH_SOURCE_DIR} --libdispatch-build-dir=${LIBDISPATCH_BUILD_DIR} "
2409
2409
fi
2410
+
2411
+ # Use XCTEST_BUILD_TYPE to build either --debug or --release.
2412
+ if [[ " ${XCTEST_BUILD_TYPE} " == " Debug" ]] ; then
2413
+ XCTEST_BUILD_ARGS=" --debug"
2414
+ else
2415
+ XCTEST_BUILD_ARGS=" --release"
2416
+ fi
2417
+
2410
2418
echo " --- Running tests for ${product} ---"
2411
2419
SWIFTC_BIN=" $( build_directory_bin ${LOCAL_HOST} swift) /swiftc"
2412
2420
FOUNDATION_BUILD_DIR=$( build_directory ${host} foundation)
@@ -2415,6 +2423,7 @@ for host in "${ALL_HOSTS[@]}"; do
2415
2423
--swiftc=" ${SWIFTC_BIN} " \
2416
2424
--foundation-build-dir=" ${FOUNDATION_BUILD_DIR} /Foundation" \
2417
2425
${LIBDISPATCH_BUILD_ARGS} \
2426
+ $XCTEST_BUILD_ARGS \
2418
2427
" ${XCTEST_BUILD_DIR} "
2419
2428
echo " --- Finished tests for ${product} ---"
2420
2429
continue
You can’t perform that action at this time.
0 commit comments