Fix building HTML5 when cmd.exe is set up for MSVC
(cherry picked from commit b0e387a012
)
This commit is contained in:
parent
4aca27e2fa
commit
e06ce95655
1 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ platform_arg = ARGUMENTS.get("platform", ARGUMENTS.get("p", False))
|
|||
if (os.name == "posix"):
|
||||
pass
|
||||
elif (os.name == "nt"):
|
||||
if (os.getenv("VCINSTALLDIR") == None or platform_arg == "android"):
|
||||
if (os.getenv("VCINSTALLDIR") == None or platform_arg == "android" or platform_arg == "javascript"):
|
||||
custom_tools = ['mingw']
|
||||
|
||||
env_base = Environment(tools=custom_tools)
|
||||
|
@ -283,7 +283,7 @@ if selected_platform in platform_list:
|
|||
if (env["warnings"] == 'yes'):
|
||||
print("WARNING: warnings=yes is deprecated; assuming warnings=all")
|
||||
|
||||
if (os.name == "nt" and os.getenv("VCINSTALLDIR")): # MSVC, needs to stand out of course
|
||||
if (os.name == "nt" and os.getenv("VCINSTALLDIR") and (platform_arg == "windows" or platform_arg == "uwp")): # MSVC, needs to stand out of course
|
||||
# This is an ugly hack. It's possible (and common in the case of having older versions of MSVC installed)
|
||||
# to have MSVC installed but not Visual Studio itself. If this happens the environment variable
|
||||
# "VSINSTALLDIR" is never set as Visual Studio isn't installed. However, near as I can figure out,
|
||||
|
|
Loading…
Add table
Reference in a new issue