You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
errlog('Warning: MSYSTEM environment variable is present, and is set to "'+os.getenv('MSYSTEM') +'". This shell has not been tested with emsdk and may not work.')
87
-
88
74
MACOS=False
89
-
ifplatform.mac_ver()[0] !='':
90
-
MACOS=True
91
-
92
75
LINUX=False
93
-
ifnotMACOSand (platform.system() =='Linux'):
94
-
LINUX=True
76
+
77
+
if'EMSDK_OS'inos.environ:
78
+
EMSDK_OS=os.environ['EMSDK_OS']
79
+
ifEMSDK_OS=='windows':
80
+
WINDOWS=True
81
+
elifEMSDK_OS=='linux':
82
+
LINUX=True
83
+
elifEMSDK_OS=='macos':
84
+
MACOS=True
85
+
else:
86
+
assertFalse
87
+
else:
88
+
ifos.name=='nt'or (os.getenv('SYSTEMROOT') isnotNoneand'windows'inos.getenv('SYSTEMROOT').lower()) or (os.getenv('COMSPEC') isnotNoneand'windows'inos.getenv('COMSPEC').lower()):
89
+
WINDOWS=True
90
+
91
+
ifos.getenv('MSYSTEM'):
92
+
MSYS=True
93
+
# Some functions like os.path.normpath() exhibit different behavior between
94
+
# different versions of Python, so we need to distinguish between the MinGW
errlog('Warning: MSYSTEM environment variable is present, and is set to "'+os.getenv('MSYSTEM') +'". This shell has not been tested with emsdk and may not work.')
0 commit comments