diff --git a/Cargo.toml b/Cargo.toml index b23e3ce..cf9e3bc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "coreaudio-sys" -version = "0.2.9" +version = "0.2.10" authors = ["Mitchell Nordine "] description = "Bindings for Apple's CoreAudio frameworks generated via rust-bindgen" license = "MIT" diff --git a/build.rs b/build.rs index dd83151..81cfbcc 100644 --- a/build.rs +++ b/build.rs @@ -128,10 +128,15 @@ fn build(sdk_path: Option<&str>, target: &str) { if target.contains("apple-ios") { // time.h as has a variable called timezone that conflicts with some of the objective-c // calls from NSCalendar.h in the Foundation framework. This removes that one variable. - builder = builder.blacklist_item("timezone"); - builder = builder.blacklist_item("objc_object"); + builder = builder.blocklist_item("timezone"); + builder = builder.blocklist_item("objc_object"); } + // bindgen produces alignment tests that cause undefined behavior in some cases. + // This seems to happen across all apple target tripples :/. + // https://github.com/rust-lang/rust-bindgen/issues/1651 + builder = builder.layout_tests(false); + let meta_header: Vec<_> = headers .iter() .map(|h| format!("#include <{}>\n", h))