Skip to content

Commit 94b75ac

Browse files
committed
Make is_like_windows possible on cygwin.
1 parent eae8118 commit 94b75ac

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_target/src/spec

1 file changed

+2
-2
lines changed

compiler/rustc_target/src/spec/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2956,8 +2956,8 @@ impl Target {
29562956
);
29572957
check_eq!(
29582958
self.is_like_windows,
2959-
self.os == "windows" || self.os == "uefi",
2960-
"`is_like_windows` must be set if and only if `os` is `windows` or `uefi`"
2959+
self.os == "windows" || self.os == "uefi" || self.os == "cygwin",
2960+
"`is_like_windows` must be set if and only if `os` is `windows`, `uefi` or `cygwin`"
29612961
);
29622962
check_eq!(
29632963
self.is_like_wasm,

0 commit comments

Comments
 (0)