Fix issue where MSYS2 and MinGW mistaken for Linux (#628)

When running `emsdk.py` with python provided by MSYS2/MinGW the environment gets falsely identified as Linux.

See discussion for details:
https://github.com/emscripten-core/emscripten/issues/12376#issuecomment-702245993

Fixes #385
This commit is contained in:
M.T. McParlane
2020-10-01 15:32:16 -04:00
committed by GitHub
parent 8ca8591e2b
commit e899a6fd5a

View File

@@ -74,7 +74,7 @@ if platform.mac_ver()[0] != '':
MACOS = True
LINUX = False
if not MACOS and (platform.system() == 'Linux' or os.name == 'posix'):
if not MACOS and (platform.system() == 'Linux'):
LINUX = True
UNIX = (MACOS or LINUX)