Skip to content

Commit ceeb724

Browse files
committed
Don't build SwiftUnitTests for cross compile host
1 parent 849c636 commit ceeb724

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

utils/build-script-impl

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2468,13 +2468,15 @@ for host in "${ALL_HOSTS[@]}"; do
24682468
executable_target=
24692469
results_targets=
24702470
if ! [[ "${SKIP_TEST_SWIFT}" ]]; then
2471-
executable_target=SwiftUnitTests
2472-
results_targets=("${SWIFT_TEST_TARGETS[@]}")
2473-
if [[ "${STRESS_TEST_SOURCEKIT}" ]]; then
2474-
results_targets=(
2475-
"${results_targets[@]}"
2476-
stress-SourceKit
2477-
)
2471+
if ! [[ $(is_cross_tools_host ${host}) ]] ; then
2472+
executable_target=SwiftUnitTests
2473+
results_targets=("${SWIFT_TEST_TARGETS[@]}")
2474+
if [[ "${STRESS_TEST_SOURCEKIT}" ]]; then
2475+
results_targets=(
2476+
"${results_targets[@]}"
2477+
stress-SourceKit
2478+
)
2479+
fi
24782480
fi
24792481
fi
24802482
if ! [[ "${SKIP_TEST_BENCHMARKS}" ]]; then

0 commit comments

Comments
 (0)