use MSVC toolchain if PLATFORM is defined

This commit is contained in:
mati865 2016-11-23 16:07:43 +01:00
parent 5946f756d7
commit 02b2b9ccbc

View file

@ -108,10 +108,12 @@ def host_triple():
os_type = "linux-androideabi"
elif os_type == "windows":
# If we are in a Visual Studio environment, use msvc
if os.getenv("VSInstallDir") is not None:
if os.getenv("PLATFORM") is not None:
os_type = "pc-windows-msvc"
else:
elif os.getenv("MSYSTEM") is not None:
os_type = "pc-windows-gnu"
else:
os_type = "unknown"
elif os_type.startswith("mingw64_nt-") or os_type.startswith("cygwin_nt-"):
os_type = "pc-windows-gnu"
elif os_type == "freebsd":