Merge pull request #175 from thewh1teagle/fix/link-coreml
fix: add search path for coreml on macOS
This commit is contained in:
commit
95689c6b80
1 changed files with 2 additions and 0 deletions
|
|
@ -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") {
|
||||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue