From: Eric Biggers Date: Fri, 31 Mar 2023 07:15:02 +0000 (-0700) Subject: windows-build.sh: hint about installing prerequisites X-Git-Tag: v1.14.0~29 X-Git-Url: https://wimlib.net/git/?a=commitdiff_plain;h=77f245e50894fcf099afb4272becd5ff463a623a;p=wimlib windows-build.sh: hint about installing prerequisites --- 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