mirror of
https://github.com/servo/servo.git
synced 2025-06-20 15:18:58 +01:00
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.
This commit is contained in:
parent
ebe7d9ebfb
commit
cc1bb8d5df
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