Skip to content

Commit b92beb4

Browse files
authored
[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.
1 parent 2a05418 commit b92beb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/build-script-impl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ fi
10511051
ALL_HOSTS=("${ALL_HOSTS[@]}" "${CROSS_COMPILE_HOSTS[@]}")
10521052

10531053
function has_cross_compile_hosts() {
1054-
if [[ ${#ALL_HOSTS[@]} -gt 1 ]]; then
1054+
if [[ ${#CROSS_COMPILE_HOSTS[@]} -ge 1 ]]; then
10551055
echo "1"
10561056
fi
10571057
}

0 commit comments

Comments
 (0)