mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
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:
commit
31bdcbe725
1 changed files with 1 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue