Skip to content

Commit

Permalink
Merge pull request #175 from thewh1teagle/fix/link-coreml
Browse files Browse the repository at this point in the history
fix: add search path for coreml on macOS
  • Loading branch information
tazz4843 authored Oct 21, 2024
2 parents d706878 + 9cb98dc commit 95689c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down Expand Up @@ -244,6 +245,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");
Expand Down

0 comments on commit 95689c6

Please sign in to comment.