From 63ec96a57d4772a961bea63111c927ccd7c85a91 Mon Sep 17 00:00:00 2001 From: Xidorn Quan Date: Mon, 21 Nov 2016 17:43:21 +1100 Subject: [PATCH] Use msvc toolchain when in Visual Studio env --- python/servo/command_base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"