Skip to content

Commit

Permalink
Auto merge of #3489 - JohnTitor:i686-pc-windows-gnu-ci, r=JohnTitor
Browse files Browse the repository at this point in the history
Re-enable `i686-pc-windows-gnu` CI

Let's see if GCC doesn't crash anymore.
Fixes #1592
  • Loading branch information
bors committed Dec 19, 2023
2 parents bb4eae6 + d8b4bb5 commit f05d6a3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/bors.yml
Expand Up @@ -73,12 +73,10 @@ jobs:
ARCH_BITS: 64
ARCH: x86_64
- target: x86_64-pc-windows-msvc
# Disabled because broken:
# https://github.com/rust-lang/libc/issues/1592
#- target: i686-pc-windows-gnu
# env:
# ARCH_BITS: 32
# ARCH: i686
- target: i686-pc-windows-gnu
env:
ARCH_BITS: 32
ARCH: i686
- target: i686-pc-windows-msvc
steps:
- uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@HEAD
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/main.yml
Expand Up @@ -58,12 +58,10 @@ jobs:
ARCH_BITS: 64
ARCH: x86_64
- target: x86_64-pc-windows-msvc
# Disabled because broken:
# https://github.com/rust-lang/libc/issues/1592
#- target: i686-pc-windows-gnu
# env:
# ARCH_BITS: 32
# ARCH: i686
- target: i686-pc-windows-gnu
env:
ARCH_BITS: 32
ARCH: i686
- target: i686-pc-windows-msvc
steps:
- uses: actions/checkout@v4
Expand Down
9 changes: 8 additions & 1 deletion libc-test/build.rs
Expand Up @@ -618,6 +618,7 @@ fn test_openbsd(target: &str) {
fn test_windows(target: &str) {
assert!(target.contains("windows"));
let gnu = target.contains("gnu");
let i686 = target.contains("i686");

let mut cfg = ctest_cfg();
if target.contains("msvc") {
Expand Down Expand Up @@ -684,14 +685,20 @@ fn test_windows(target: &str) {
cfg.skip_type(move |name| match name {
"SSIZE_T" if !gnu => true,
"ssize_t" if !gnu => true,
// FIXME: The size and alignment of this type are incorrect
"time_t" if gnu && i686 => true,
_ => false,
});

cfg.skip_struct(move |ty| {
if ty.starts_with("__c_anonymous_") {
return true;
}
return false;
match ty {
// FIXME: The size and alignment of this struct are incorrect
"timespec" if gnu && i686 => true,
_ => false,
}
});

cfg.skip_const(move |name| {
Expand Down

0 comments on commit f05d6a3

Please sign in to comment.