Skip to content

Commit

Permalink
Fix CI on emscripten
Browse files Browse the repository at this point in the history
  • Loading branch information
asomers committed May 13, 2024
1 parent 9b61cf9 commit ae8064e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2752,6 +2752,9 @@ fn test_emscripten(target: &str) {
});

cfg.skip_struct(move |ty| {
if ty.starts_with("__c_anonymous_") {
return true;
}
match ty {
// This is actually a union, not a struct
// FIXME: is this necessary?
Expand Down Expand Up @@ -2844,7 +2847,7 @@ fn test_emscripten(target: &str) {
});

cfg.skip_field(move |struct_, field| {
// _sigev_un is an anonymous union
// _sigev_un is an anonymous union
(struct_ == "sigevent" && field == "_sigev_un") ||
// this is actually a union on linux, so we can't represent it well and
// just insert some padding.
Expand All @@ -2856,8 +2859,6 @@ fn test_emscripten(target: &str) {
// musl seems to define this as an *anonymous* bitfield
// FIXME: is this necessary?
(struct_ == "statvfs" && field == "__f_unused") ||
// sigev_notify_thread_id is actually part of a sigev_un union
(struct_ == "sigevent" && field == "sigev_notify_thread_id") ||
// signalfd had SIGSYS fields added in Linux 4.18, but no libc release has them yet.
(struct_ == "signalfd_siginfo" && (field == "ssi_addr_lsb" ||
field == "_pad2" ||
Expand Down

0 comments on commit ae8064e

Please sign in to comment.