RelWithDebInfo
RelWithDebInfo, short for Release with Debug Information, is a common build configuration used by CMake and other build systems. It represents a middle ground between Debug and Release, aiming to provide optimized code while retaining debugging symbols. This configuration is often chosen for distribution builds where performance matters but some debugging capability is still needed.
In practice, RelWithDebInfo enables compiler optimizations similar to Release, while including a reasonable amount of debugging
Usage typically involves selecting RelWithDebInfo as the build type. In CMake, you can request it with cmake