Enable layout tests on iOS target

This commit is contained in:
Liu Dingming 2024-02-06 16:41:34 +08:00 committed by Rushil Mehra
parent 30b33991e5
commit b96d2b88a4
1 changed files with 0 additions and 15 deletions

View File

@ -709,21 +709,6 @@ fn main() {
.clang_arg(sysroot.display().to_string());
}
match &*config.target {
// bindgen produces alignment tests that cause undefined behavior [1]
// when applied to explicitly unaligned types like OSUnalignedU64.
//
// There is no way to disable these tests for only some types
// and it's not nice to suppress warnings for the entire crate,
// so let's disable all alignment tests and hope for the best.
//
// [1]: https://github.com/rust-lang/rust-bindgen/issues/1651
"aarch64-apple-ios" | "aarch64-apple-ios-sim" => {
builder = builder.layout_tests(false);
}
_ => {}
}
let headers = [
"aes.h",
"asn1_mac.h",