From 77f245e50894fcf099afb4272becd5ff463a623a Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Fri, 31 Mar 2023 00:15:02 -0700 Subject: [PATCH] windows-build.sh: hint about installing prerequisites --- tools/windows-build.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/windows-build.sh b/tools/windows-build.sh index bd4e13aa..241fca2f 100755 --- a/tools/windows-build.sh +++ b/tools/windows-build.sh @@ -210,6 +210,13 @@ configure_wimlib() if ! type -P "$cc" &>/dev/null; then cc="${ARCH}-w64-mingw32-gcc" fi + if ! type -P "$cc" &>/dev/null; then + echo 1>&2 "ERROR: $cc not found!" + if [ -n "$MSYSTEM" ]; then + echo 1>&2 "Consider using --install-prerequisites" + fi + exit 1 + fi if "$cc" --version | grep -q '(GCC)'; then configure_args+=("CC=$cc -static-libgcc") fi -- 2.46.1