From cc1bb8d5df92ac85dfe809c8190cf6921288c257 Mon Sep 17 00:00:00 2001 From: Wei Tang Date: Wed, 9 Mar 2016 10:55:22 +0800 Subject: [PATCH] Detect Cygwin environment on Windows Currently if Servo is built using Cygwin, it is incorrectly classified as "unknown" host, which makes downloading Rust and Cargo fail. This commit fixes that. --- python/servo/command_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/servo/command_base.py b/python/servo/command_base.py index a3724869e04..91a834e5ce1 100644 --- a/python/servo/command_base.py +++ b/python/servo/command_base.py @@ -41,7 +41,7 @@ def host_triple(): os_type = "apple-darwin" elif os_type == "android": os_type = "linux-androideabi" - elif os_type == "windows" or os_type.startswith("mingw64_nt-"): + elif os_type == "windows" or os_type.startswith("mingw64_nt-") or os_type.startswith("cygwin_nt-"): os_type = "pc-windows-gnu" else: os_type = "unknown"