build-cross-tools: Check for required tools

This matches what's checked in build-all.sh.
This commit is contained in:
Martin Storsjö committed 2022-10-21 18:00:20 +03:00
1 parent aa5216db99
commit c915fc9212
1 file changed
+7
+7
View File
@@ -57,6 +57,13 @@ if [ -z "$CROSS_ARCH" ]; then
exit 1
fi
for dep in git curl cmake; do
if ! command -v $dep >/dev/null; then
echo "$dep not installed. Please install it and retry" 1>&2
exit 1
fi
done
export PATH="$NATIVE/bin:$PATH"
HOST=$CROSS_ARCH-w64-mingw32