Switch from Debug to RelWithDebugInfo
Debug builds are simply too slow to be remotely usable even on a 13700K, or with an Intel Arc A770 GPU (both tested to be unusable for anything approaching realtime)
This commit is contained in:
parent
fdf5ded360
commit
755d9e590f
1 changed files with 3 additions and 1 deletions
|
|
@ -139,7 +139,9 @@ fn main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if cfg!(debug_assertions) {
|
if cfg!(debug_assertions) {
|
||||||
config.define("CMAKE_BUILD_TYPE", "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");
|
||||||
}
|
}
|
||||||
|
|
||||||
let destination = config.build();
|
let destination = config.build();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue