diff --git a/sys/build.rs b/sys/build.rs index 354e93b..c647037 100644 --- a/sys/build.rs +++ b/sys/build.rs @@ -139,6 +139,7 @@ fn main() { if cfg!(feature = "metal") { config.define("WHISPER_METAL", "ON"); + config.define("WHISPER_METAL_NDEBUG", "ON"); } else { // Metal is enabled by default, so we need to explicitly disable it config.define("WHISPER_METAL", "OFF");