From 755d9e590fb57a00fc2939966ec04210556a9c2d Mon Sep 17 00:00:00 2001 From: Niko Date: Fri, 15 Dec 2023 21:09:04 -0700 Subject: [PATCH] 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) --- sys/build.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/build.rs b/sys/build.rs index a3c6a0f..2dc3d45 100644 --- a/sys/build.rs +++ b/sys/build.rs @@ -139,7 +139,9 @@ fn main() { } 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();