diff options
author | Xidorn Quan <me@upsuper.org> | 2016-11-21 17:43:21 +1100 |
---|---|---|
committer | Xidorn Quan <me@upsuper.org> | 2016-11-21 17:47:21 +1100 |
commit | 63ec96a57d4772a961bea63111c927ccd7c85a91 (patch) | |
tree | ecab20dd49c893791d0c8e16cb46eab19b4d9e51 /python/servo/command_base.py | |
parent | dd611ef310159ff3de5e7117186504c050ddb02e (diff) | |
download | servo-63ec96a57d4772a961bea63111c927ccd7c85a91.tar.gz servo-63ec96a57d4772a961bea63111c927ccd7c85a91.zip |
Use msvc toolchain when in Visual Studio env
Diffstat (limited to 'python/servo/command_base.py')
-rw-r--r-- | python/servo/command_base.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py index 1a236bdf1fa..d277bff55ae 100644 --- a/python/servo/command_base.py +++ b/python/servo/command_base.py @@ -107,7 +107,8 @@ def host_triple(): elif os_type == "android": os_type = "linux-androideabi" elif os_type == "windows": - if os.getenv("MSYSTEM") is None: + # If we are in a Visual Studio environment, use msvc + if os.getenv("VSInstallDir") is not None: os_type = "pc-windows-msvc" else: os_type = "pc-windows-gnu" |