Skip to content

Commit 647bde5

Browse files
committed
chore: wip
1 parent df3e0ef commit 647bde5

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

libc-test/build.rs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ fn test_windows(target: &str) {
785785
}
786786
cfg.define("_WIN32_WINNT", Some("0x8000"));
787787

788-
if gnu && i686 {
788+
let redirect_time_t = if gnu && i686 {
789789
if let Ok(v) = env::var("CARGO_CFG_LIBC_UNSTABLE_GNU_TIME_BITS") {
790790
assert_matches!(
791791
v.as_str(),
@@ -795,9 +795,16 @@ fn test_windows(target: &str) {
795795

796796
if v == "64" {
797797
cfg.cfg("gnu_time_bits64", None);
798+
true
799+
} else {
800+
false
798801
}
802+
} else {
803+
false
799804
}
800-
}
805+
} else {
806+
false
807+
};
801808

802809
headers!(
803810
cfg,
@@ -856,7 +863,7 @@ fn test_windows(target: &str) {
856863
"SSIZE_T" if !gnu => true,
857864
"ssize_t" if !gnu => true,
858865
// FIXME(windows): The size and alignment of this type are incorrect
859-
"time_t" if gnu && i686 => true,
866+
"time_t" if gnu && i686 && !redirect_time_t => true,
860867
_ => false,
861868
});
862869

0 commit comments

Comments
 (0)