fix: add search path for coreml on macOS

This commit is contained in:
thewh1teagle 2024-09-14 00:56:01 +03:00
parent d8b6aefe06
commit 9cb98dcf53
No known key found for this signature in database

View file

@ -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");