Explicitly set CMAKE_BUILD_TYPE always

This commit is contained in:
Niko 2025-09-06 12:28:21 -07:00
parent 0c509ec9c5
commit 5f054c94b7
No known key found for this signature in database

View file

@ -251,6 +251,10 @@ fn main() {
// so we build with optimizations even in debug mode // so we build with optimizations even in debug mode
config.define("CMAKE_BUILD_TYPE", "RelWithDebInfo"); config.define("CMAKE_BUILD_TYPE", "RelWithDebInfo");
config.cxxflag("-DWHISPER_DEBUG"); 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 // Allow passing any WHISPER or CMAKE compile flags