]> wimlib.net Git - wimlib/commitdiff
windows-build.sh: hint about installing prerequisites
authorEric Biggers <ebiggers3@gmail.com>
Fri, 31 Mar 2023 07:15:02 +0000 (00:15 -0700)
committerEric Biggers <ebiggers3@gmail.com>
Fri, 31 Mar 2023 07:15:02 +0000 (00:15 -0700)
tools/windows-build.sh

index bd4e13aa390cd20185c78a9bc1a870f335210125..241fca2f2a41df94eb3420500400ea39deedb439 100755 (executable)
@@ -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