Auto merge of #9937 - sorpaas:fix/cygwin, r=Wafflespeanut

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 pull request fixes that.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9937)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-03-09 17:53:01 +05:30
commit 31bdcbe725

View file

@ -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"