build_nim.sh: better Windows detection

This commit is contained in:
Ștefan Talpalaru 2019-06-12 21:10:35 +02:00
parent 452419318c
commit 6309c1a348
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ UCPU=""
[[ -z "$NIM_BUILD_MSG" ]] && NIM_BUILD_MSG="Building the Nim compiler"
# Windows detection
if uname | grep -qi mingw; then
if uname | grep -qiE "mingw|msys"; then
ON_WINDOWS=1
EXE_SUFFIX=".exe"
else