link cuda when cuda feature is on
This commit is contained in:
parent
3c20758cce
commit
3d33a73458
1 changed files with 4 additions and 0 deletions
|
|
@ -265,6 +265,10 @@ fn main() {
|
|||
if cfg!(feature = "metal") {
|
||||
println!("cargo:rustc-link-lib=static=ggml-metal");
|
||||
}
|
||||
|
||||
if cfg!(feature = "cuda") {
|
||||
println!("cargo:rustc-link-lib=static=ggml-cuda");
|
||||
}
|
||||
|
||||
println!(
|
||||
"cargo:WHISPER_CPP_VERSION={}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue