optim: use build config instead of copying metal file to target folder

This commit is contained in:
hlhr202 2024-05-29 10:42:25 +08:00
parent 3f27c17fdf
commit 8872109d04
4 changed files with 4 additions and 17 deletions

View file

@ -85,7 +85,7 @@ pub unsafe fn set_log_callback(
whisper_rs_sys::whisper_log_set(log_callback, user_data);
#[cfg(feature = "metal")]
{
whisper_rs_sys::ggml_metal_log_set_callback(log_callback, user_data);
whisper_rs_sys::ggml_backend_metal_log_set_callback(log_callback, user_data);
}
}
}