mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
fix bug introduced by #6501
( @Akien : this PR is for current HEAD only, not to be cherry-picked for 2.1.1 ) this is manual revertion of #6501 which introduced a bug that prevented scons from detecting Mingw under Windows when MSVC was installed. (thanks to @vnen for finding this) AND it fixes the actual bug that prevented scons from detecting MSVC standalone compiler ( a confusions between ``VSINSTALLDIR`` and ``VCINSTALLDIR`` ) The freeware Standalone MSVC C++ Build Tools are available here : http://landinghub.visualstudio.com/visual-cpp-build-tools
This commit is contained in:
parent
c67e3a485d
commit
f7773d499d
4 changed files with 15 additions and 20 deletions
|
@ -1516,11 +1516,6 @@ def detect_visual_c_compiler_version(tools_env):
|
|||
|
||||
return vc_chosen_compiler_str
|
||||
|
||||
def msvc_is_detected() :
|
||||
# looks for VisualStudio env variable
|
||||
# or for Visual C++ Build Tools (which is a standalone MSVC)
|
||||
return os.getenv("VSINSTALLDIR") or os.getenv("VS100COMNTOOLS") or os.getenv("VS110COMNTOOLS") or os.getenv("VS120COMNTOOLS") or os.getenv("VS140COMNTOOLS");
|
||||
|
||||
|
||||
def precious_program(env, program, sources, **args):
|
||||
program = env.ProgramOriginal(program, sources, **args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue