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
visual_studio_path=os.path.normpath(os.path.join(env['ProgramFiles(x86)'], 'Microsoft Visual Studio 14.0'))
76
-
elif'ProgramFiles'inenv:
77
-
visual_studio_path=os.path.normpath(os.path.join(env['ProgramFiles'], 'Microsoft Visual Studio 14.0'))
78
-
else:
79
-
visual_studio_path='C:\\Program Files (x86)\\Microsoft Visual Studio 14.0'
72
+
# Guess where Visual Studio is installed
73
+
forversioninrange(17, 13, -1):
74
+
visual_studio_path=vswhere(version)
75
+
ifvisual_studio_path:
76
+
break
77
+
80
78
ifnotos.path.isdir(visual_studio_path):
81
-
raiseException('Visual Studio 2015 was not found in "'+visual_studio_path+'"! Run in Visual Studio X64 command prompt to avoid the need to autoguess this location (or set VSINSTALLDIR env var).')
79
+
raiseException('Visual Studio was not found in "'+visual_studio_path+'"! Run in Visual Studio X64 command prompt to avoid the need to autoguess this location (or set VSINSTALLDIR env var).')
82
80
83
81
# Guess where Program Files (x86) is located
84
82
if'ProgramFiles(x86)'inenv:
@@ -92,14 +90,6 @@ def get_clang_native_env():
92
90
else:
93
91
raiseException('Unable to detect Program files directory for native Visual Studio build!')
raiseException('Windows 8.1 SDK was not found in "'+windows8_sdk_dir+'"! Run in Visual Studio command prompt to avoid the need to autoguess this location (or set WindowsSdkDir env var).')
# append_item('INCLUDE', 'C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.6.1\\include\\um') # VS2015 X64 command prompt has this, but not needed for Emscripten
# append_item('LIB', 'C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.6.1\\lib\\um\\x64') # VS2015 X64 command prompt has this, but not needed for Emscripten
self.check_working([EMCC, test_file('hello_world.c')], 'error parsing binaryen version (wasm-opt version foo). Please check your binaryen installation')
0 commit comments