From c915fc9212a137cc86b03ad6fc461881d840884c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Wed, 5 Oct 2022 00:06:06 +0300 Subject: [PATCH] build-cross-tools: Check for required tools This matches what's checked in build-all.sh. --- build-cross-tools.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build-cross-tools.sh b/build-cross-tools.sh index 4e681cf..9357507 100755 --- a/build-cross-tools.sh +++ b/build-cross-tools.sh @@ -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