From f1354c780970b06b9a764b9b800f5262b2398a7c Mon Sep 17 00:00:00 2001 From: Sebastian Imlay Date: Mon, 17 Aug 2020 01:00:02 -0700 Subject: [PATCH] updated to latest build objc build of bindgen --- Cargo.toml | 7 +++++-- build.rs | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f6cc61d..8e8cc80 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,8 +16,11 @@ block = "0.1.6" [build-dependencies.bindgen] #version = "0.52" -git = "https://github.com/rust-lang/rust-bindgen.git" -revision = "ba409edf5d3a1acc6ac4dcb32d1e168cc3a2a41b" +git = "https://github.com/simlay/rust-bindgen.git" +branch = "categories-and-better-return-types" +#git = "https://github.com/rust-lang/rust-bindgen.git" +#revision = "ba409edf5d3a1acc6ac4dcb32d1e168cc3a2a41b" +#path = "../../rust-bindgen/" default-features = false [features] diff --git a/build.rs b/build.rs index c02ef17..88848ef 100644 --- a/build.rs +++ b/build.rs @@ -52,7 +52,7 @@ fn build(sdk_path: Option<&str>, target: &str) { #[cfg(feature = "audio_unit")] { - println!("cargo:rustc-link-lib=framework=AudioUnit"); + println!("cargo:rustc-link-lib=framework=AudioToolbox"); headers.push("AudioUnit/AudioUnit.h"); } @@ -112,6 +112,7 @@ fn build(sdk_path: Option<&str>, target: &str) { // 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"); } let meta_header: Vec<_> = headers