mirror of
https://github.com/servo/servo.git
synced 2025-06-10 09:33:13 +00:00
use MSVC toolchain if PLATFORM is defined
This commit is contained in:
parent
5946f756d7
commit
02b2b9ccbc
1 changed files with 4 additions and 2 deletions
|
@ -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":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue