From 9cb98dcf53f29e11a4821ffeaf999e5b8d576332 Mon Sep 17 00:00:00 2001 From: thewh1teagle <61390950+thewh1teagle@users.noreply.github.com> Date: Sat, 14 Sep 2024 00:56:01 +0300 Subject: [PATCH] fix: add search path for coreml on macOS --- sys/build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/build.rs b/sys/build.rs index 1f904a9..696867b 100644 --- a/sys/build.rs +++ b/sys/build.rs @@ -32,6 +32,7 @@ fn main() { #[cfg(feature = "coreml")] println!("cargo:rustc-link-lib=static=whisper.coreml"); + #[cfg(feature = "openblas")] { if let Ok(openblas_path) = env::var("OPENBLAS_PATH") { @@ -233,6 +234,7 @@ fn main() { let destination = config.build(); add_link_search_path(&out.join("lib")).unwrap(); + add_link_search_path(&out.join("build/src")).unwrap(); println!("cargo:rustc-link-search=native={}", destination.display()); println!("cargo:rustc-link-lib=static=whisper");