Incorporate changes from sandbox-friendly PR
This commit is contained in:
parent
ace4bbd18a
commit
ccccfe758d
1 changed files with 7 additions and 0 deletions
|
|
@ -130,6 +130,13 @@ fn main() {
|
||||||
if cfg!(feature = "opencl") {
|
if cfg!(feature = "opencl") {
|
||||||
config.define("WHISPER_CLBLAST", "ON");
|
config.define("WHISPER_CLBLAST", "ON");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if cfg!(feature = "metal") {
|
||||||
|
config.define("WHISPER_METAL", "ON");
|
||||||
|
} else {
|
||||||
|
// Metal is enabled by default, so we need to explicitly disable it
|
||||||
|
config.define("WHISPER_METAL", "OFF");
|
||||||
|
}
|
||||||
|
|
||||||
let destination = config.build();
|
let destination = config.build();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue