Skip to content

Commit

Permalink
Set -Og as debug compilation option on Linux
Browse files Browse the repository at this point in the history
-Og is recommended instead of -O0 by GCC manual to provide optimal debugging
functionality.
  • Loading branch information
Matthew Mott committed Apr 22, 2020
1 parent ff1006e commit b2f42b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure.ac
Expand Up @@ -332,8 +332,8 @@ LDFLAGS="$USER_LDFLAGS $LIBSIGC_LIBS $FMTLIB_LDFLAGS"
if test "$debug_build" != 'no'
then
CPPFLAGS="-D_DEBUG $CPPFLAGS"
CFLAGS="-g -O0 $CFLAGS"
CXXFLAGS="-g -O0 $CXXFLAGS"
CFLAGS="-g -Og $CFLAGS"
CXXFLAGS="-g -Og $CXXFLAGS"
else
CFLAGS="-g -O2 -DNDEBUG $CFLAGS"
CXXFLAGS="-g -O2 -DNDEBUG $CXXFLAGS"
Expand Down

0 comments on commit b2f42b9

Please sign in to comment.