From 48dd9ef2f2ab8c41438aa406158ff56fb888c434 Mon Sep 17 00:00:00 2001 From: Michael Hills Date: Sun, 21 Feb 2021 15:13:46 +1100 Subject: [PATCH] Revert AudioUnit/AudioToolbox linking change but put AudioUnit first --- build.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build.rs b/build.rs index 314d128..f9632eb 100644 --- a/build.rs +++ b/build.rs @@ -44,16 +44,16 @@ fn build(sdk_path: Option<&str>, target: &str) { let mut headers: Vec<&'static str> = vec![]; - #[cfg(feature = "audio_toolbox")] + #[cfg(feature = "audio_unit")] { - println!("cargo:rustc-link-lib=framework=AudioToolbox"); - headers.push("AudioToolbox/AudioToolbox.h"); + println!("cargo:rustc-link-lib=framework=AudioUnit"); + headers.push("AudioUnit/AudioUnit.h"); } - #[cfg(feature = "audio_unit")] + #[cfg(feature = "audio_toolbox")] { println!("cargo:rustc-link-lib=framework=AudioToolbox"); - headers.push("AudioUnit/AudioUnit.h"); + headers.push("AudioToolbox/AudioToolbox.h"); } #[cfg(feature = "core_audio")]