fix: support MSYS2 builds on gmake
uname -s under MSYS2 never reports Windows_NT, so gmake.mk's Windows_NT checks could silently fall through to the Linux path. Detect MINGW/MSYS/UCRT/CLANG/CYGWIN uname prefixes in build.sh and gmake.mk, separating "building for Windows" (binary names, libs) from "running under cmd.exe" (mkdir/rd vs mkdir -p/rm -rf). MSYS2 keeps the posix shell builtins even when targeting Windows.
This commit is contained in:
1 parent
842c36fde6
commit
fce0ee79cb
2 files changed
+30
-9