fix: add search path for coreml on macOS
This commit is contained in:
parent
d8b6aefe06
commit
9cb98dcf53
1 changed files with 2 additions and 0 deletions
|
|
@ -32,6 +32,7 @@ fn main() {
|
||||||
|
|
||||||
#[cfg(feature = "coreml")]
|
#[cfg(feature = "coreml")]
|
||||||
println!("cargo:rustc-link-lib=static=whisper.coreml");
|
println!("cargo:rustc-link-lib=static=whisper.coreml");
|
||||||
|
|
||||||
#[cfg(feature = "openblas")]
|
#[cfg(feature = "openblas")]
|
||||||
{
|
{
|
||||||
if let Ok(openblas_path) = env::var("OPENBLAS_PATH") {
|
if let Ok(openblas_path) = env::var("OPENBLAS_PATH") {
|
||||||
|
|
@ -233,6 +234,7 @@ fn main() {
|
||||||
let destination = config.build();
|
let destination = config.build();
|
||||||
|
|
||||||
add_link_search_path(&out.join("lib")).unwrap();
|
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-search=native={}", destination.display());
|
||||||
println!("cargo:rustc-link-lib=static=whisper");
|
println!("cargo:rustc-link-lib=static=whisper");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue