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:
Niko 2023-12-15 21:09:04 -07:00
parent fdf5ded360
commit 755d9e590f
No known key found for this signature in database
GPG key ID: 3861E636EA1E0E2B

View file

@ -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();