From 02b2b9ccbc7073a3a0adef28d30d4c91978a6324 Mon Sep 17 00:00:00 2001 From: mati865 Date: Wed, 23 Nov 2016 16:07:43 +0100 Subject: use MSVC toolchain if PLATFORM is defined --- python/servo/command_base.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'python/servo/command_base.py') diff --git a/python/servo/command_base.py b/python/servo/command_base.py index d277bff55ae..660cd453882 100644 --- a/python/servo/command_base.py +++ b/python/servo/command_base.py @@ -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": -- cgit v1.2.3