Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
By default, CMake Release builds are built without debug symbols. The idea is that you use RelWithDebInfo if you want them. However, RelWithDebInfo generates less optimized code, only inlining __inline code. More specifically, RelWithDebInfo builds use the /Ob1 option, and Release builds use /Ob2 [1,2]. In the end, we want to use Release for production code, but we also need debug symbols for post-mortem analysis. [1] conan-io/conan-center-index#1982 (comment) [2] https://gitlab.kitware.com/cmake/cmake/-/blob/d7741457861816d50114801abc84d1d78afdc754/Modules/Platform/Windows-MSVC.cmake#L486-490
- Loading branch information