aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/command_base.py
diff options
context:
space:
mode:
authorXidorn Quan <me@upsuper.org>2016-11-21 17:43:21 +1100
committerXidorn Quan <me@upsuper.org>2016-11-21 17:47:21 +1100
commit63ec96a57d4772a961bea63111c927ccd7c85a91 (patch)
treeecab20dd49c893791d0c8e16cb46eab19b4d9e51 /python/servo/command_base.py
parentdd611ef310159ff3de5e7117186504c050ddb02e (diff)
downloadservo-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.py3
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"