Skip to content

Commit

Permalink
Maybe fix metal build? ref #108
Browse files Browse the repository at this point in the history
  • Loading branch information
tazz4843 committed Apr 6, 2024
1 parent a9e0605 commit 39042a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ fn main() {

if cfg!(feature = "metal") {
config.define("WHISPER_METAL", "ON");
env::set_var("GGML_METAL_PATH_RESOURCES", out.as_os_str());
} else {
// Metal is enabled by default, so we need to explicitly disable it
config.define("WHISPER_METAL", "OFF");
Expand Down

0 comments on commit 39042a8

Please sign in to comment.