meson.build - enable debug compatible optimizations in debug modes#232
meson.build - enable debug compatible optimizations in debug modes#232Architector4 wants to merge 1 commit intocortex-command-community:developmentfrom
Conversation
According to `man gcc`: > Optimize debugging experience. -Og should be the optimization level of choice for the standard edit-compile-debug cycle, offering a reasonable level of optimization while maintaining fast compilation and a good debugging experience. It is a better choice than -O0 for producing debuggable code because some compiler passes that collect debug information are disabled at -O0. TLDR: it's a no-brainer to enable for debug builds. I'm running the game in debug nowadays, and using this genuinely just makes it run way faster lol
|
Do not hardcode these in the build files, setup your build environment correctly instead using |
|
Huh. Never underestimate the complexity C++ codebase build systems I guess lmao |
|
Oh wait, it gets even deeper: build type why is meson like this lmao |
|
it's all very well documented. Using the build system to do these things means it's much more compatible between compilers. also though gcc says |
|
Eh, fair. I guess I was just not expecting there to be a different debug build type in Meson, or this setting to not be that good apparently lol |
According to
man gcc:TLDR: it's a no-brainer to enable for debug builds. I'm running the game in debug nowadays, and using this genuinely just makes it run way faster lol