fix native static library not found

This commit is contained in:
0/0 2022-10-10 11:46:47 -06:00
parent cdec0cd772
commit 040650bee5
No known key found for this signature in database
GPG key ID: DE8D5010C0AAA3DC

View file

@ -4,7 +4,7 @@ use std::env;
use std::path::PathBuf; use std::path::PathBuf;
fn main() { fn main() {
println!("cargo:rustc-link-search=whisper.cpp"); println!("cargo:rustc-link-search={}", env::var("OUT_DIR").unwrap());
println!("cargo:rustc-link-lib=static=whisper"); println!("cargo:rustc-link-lib=static=whisper");
println!("cargo:rerun-if-changed=wrapper.h"); println!("cargo:rerun-if-changed=wrapper.h");