build_nim.sh: better Windows detection
This commit is contained in:
parent
452419318c
commit
6309c1a348
|
@ -25,7 +25,7 @@ UCPU=""
|
||||||
[[ -z "$NIM_BUILD_MSG" ]] && NIM_BUILD_MSG="Building the Nim compiler"
|
[[ -z "$NIM_BUILD_MSG" ]] && NIM_BUILD_MSG="Building the Nim compiler"
|
||||||
|
|
||||||
# Windows detection
|
# Windows detection
|
||||||
if uname | grep -qi mingw; then
|
if uname | grep -qiE "mingw|msys"; then
|
||||||
ON_WINDOWS=1
|
ON_WINDOWS=1
|
||||||
EXE_SUFFIX=".exe"
|
EXE_SUFFIX=".exe"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue