Enable layout tests on iOS target
This commit is contained in:
parent
30b33991e5
commit
b96d2b88a4
|
|
@ -709,21 +709,6 @@ fn main() {
|
||||||
.clang_arg(sysroot.display().to_string());
|
.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 = [
|
let headers = [
|
||||||
"aes.h",
|
"aes.h",
|
||||||
"asn1_mac.h",
|
"asn1_mac.h",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue