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:
2
emsdk.py
2
emsdk.py
@@ -74,7 +74,7 @@ if platform.mac_ver()[0] != '':
|
|||||||
MACOS = True
|
MACOS = True
|
||||||
|
|
||||||
LINUX = False
|
LINUX = False
|
||||||
if not MACOS and (platform.system() == 'Linux' or os.name == 'posix'):
|
if not MACOS and (platform.system() == 'Linux'):
|
||||||
LINUX = True
|
LINUX = True
|
||||||
|
|
||||||
UNIX = (MACOS or LINUX)
|
UNIX = (MACOS or LINUX)
|
||||||
|
|||||||
Reference in New Issue
Block a user