mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[build-script] Teach cross-compile hosts check about --skip-local-build (#27911)
Check whether there are any cross compile hosts by looking at the CROSS_COMPILE_HOSTS array, not at ALL_HOSTS, as these can be different due to --skip-local-build.
This commit is contained in:
@@ -1051,7 +1051,7 @@ fi
|
||||
ALL_HOSTS=("${ALL_HOSTS[@]}" "${CROSS_COMPILE_HOSTS[@]}")
|
||||
|
||||
function has_cross_compile_hosts() {
|
||||
if [[ ${#ALL_HOSTS[@]} -gt 1 ]]; then
|
||||
if [[ ${#CROSS_COMPILE_HOSTS[@]} -ge 1 ]]; then
|
||||
echo "1"
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user