Skip to content

Commit dcfcfc7

Browse files
MichaelHillssimlay
authored andcommitted
Revert AudioUnit/AudioToolbox linking change but put AudioUnit first
1 parent 6602318 commit dcfcfc7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

build.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,16 @@ fn build(sdk_path: Option<&str>, target: &str) {
4747

4848
let mut headers: Vec<&'static str> = vec![];
4949

50-
#[cfg(feature = "audio_toolbox")]
50+
#[cfg(feature = "audio_unit")]
5151
{
52-
println!("cargo:rustc-link-lib=framework=AudioToolbox");
53-
headers.push("AudioToolbox/AudioToolbox.h");
52+
println!("cargo:rustc-link-lib=framework=AudioUnit");
53+
headers.push("AudioUnit/AudioUnit.h");
5454
}
5555

56-
#[cfg(feature = "audio_unit")]
56+
#[cfg(feature = "audio_toolbox")]
5757
{
5858
println!("cargo:rustc-link-lib=framework=AudioToolbox");
59-
headers.push("AudioUnit/AudioUnit.h");
59+
headers.push("AudioToolbox/AudioToolbox.h");
6060
}
6161

6262
#[cfg(feature = "core_audio")]

0 commit comments

Comments
 (0)