[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:
Vedant Kumar
2019-10-28 14:39:48 -07:00
committed by GitHub
parent 2a05418dac
commit b92beb46ef

View File

@@ -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
}