-
Notifications
You must be signed in to change notification settings - Fork 133
Open
Description
Hi 👋
When building with CMake in Debug mode, the qpp library sets the compiler optimization flag to -Og rather than -O0. For debugging, -O0 is generally preferred because it disables all optimizations and makes debugging more predictable. Using -Og can sometimes interfere with breakpoints and variable inspection in debuggers like GDB.
Moreover, this flag propagates to all consumer projects that link to qpp. As a result, the entire project (not just qpp) is built with -Og in Debug mode.
Is there a specific reason for choosing -Og over -O0 for Debug builds?
Metadata
Metadata
Assignees
Labels
No labels