From 5f054c94b73346747b76c4062f47d4fe999bd105 Mon Sep 17 00:00:00 2001 From: Niko Date: Sat, 6 Sep 2025 12:28:21 -0700 Subject: [PATCH] Explicitly set CMAKE_BUILD_TYPE always --- sys/build.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/build.rs b/sys/build.rs index c441ba0..86d23d8 100644 --- a/sys/build.rs +++ b/sys/build.rs @@ -251,6 +251,10 @@ fn main() { // so we build with optimizations even in debug mode config.define("CMAKE_BUILD_TYPE", "RelWithDebInfo"); config.cxxflag("-DWHISPER_DEBUG"); + } else { + // we're in release mode, explicitly set to release mode + // see also https://codeberg.org/tazz4843/whisper-rs/issues/226 + config.define("CMAKE_BUILD_TYPE", "Release"); } // Allow passing any WHISPER or CMAKE compile flags