Skip to content

Commit 7fa6534

Browse files
committed
Fix FreeBSD and Appveyor
1 parent ab6e4a3 commit 7fa6534

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ install:
1717
- rustup-init.exe -y --default-host %TARGET%
1818
- set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
1919
- if defined MSYS2_BITS set PATH=%PATH%;C:\msys64\mingw%MSYS2_BITS%\bin
20+
- if defined MSYS2_BITS for %%I in (crt2.o dllcrt2.o libmsvcrt.a) do xcopy /Y "C:\msys64\mingw%MSYS_BITS%\%ARCH%-w64-mingw32\lib\%%I" "C:\Program Files (x86)\Rust\lib\rustlib\%TARGET%\lib"
2021
- rustc -V
2122
- cargo -V
2223

libc-test/build.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,11 @@ fn test_windows(target: &str) {
473473
}
474474
});
475475

476+
cfg.skip_roundtrip(move |s| match s {
477+
"dirent" | "statfs" | "utsname" | "utmpx" => true,
478+
_ => false,
479+
});
480+
476481
cfg.generate("../src/lib.rs", "main.rs");
477482
}
478483

@@ -1641,6 +1646,11 @@ fn test_freebsd(target: &str) {
16411646
(struct_ == "sigaction" && field == "sa_sigaction")
16421647
});
16431648

1649+
cfg.skip_roundtrip(move |s| match s {
1650+
"dirent" | "statfs" | "utsname" | "utmpx" => true,
1651+
_ => false,
1652+
});
1653+
16441654
cfg.generate("../src/lib.rs", "main.rs");
16451655
}
16461656

0 commit comments

Comments
 (0)