Add flag to force debug mode
This commit is contained in:
parent
755d9e590f
commit
b5cddefcfa
2 changed files with 5 additions and 2 deletions
|
|
@ -138,10 +138,10 @@ fn main() {
|
|||
config.define("WHISPER_METAL", "OFF");
|
||||
}
|
||||
|
||||
if cfg!(debug_assertions) {
|
||||
if cfg!(debug_assertions) || cfg!(feature = "force-debug") {
|
||||
// debug builds are too slow to even remotely be usable,
|
||||
// so we build with optimizations even in debug mode
|
||||
config.define("CMAKE_BUILD_TYPE", "RelWithDebugInfo");
|
||||
config.define("CMAKE_BUILD_TYPE", "RelWithDebInfo");
|
||||
}
|
||||
|
||||
let destination = config.build();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue