Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "coreaudio-sys"
version = "0.2.9"
version = "0.2.10"
authors = ["Mitchell Nordine <[email protected]>"]
description = "Bindings for Apple's CoreAudio frameworks generated via rust-bindgen"
license = "MIT"
Expand Down
9 changes: 7 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down