Use -O0 for debug builds

-Og is not nice enough to work with in gdb, control jumps around
in too unpredictible ways due to inlining.
This commit is contained in:
Maxime Coste 2019-07-09 19:27:55 +10:00
parent 3a7d0b67fa
commit c2e43ee42c

View File

@ -10,7 +10,7 @@ endif
ifeq ($(debug),yes)
CPPFLAGS += -DKAK_DEBUG
CXXFLAGS += -Og
CXXFLAGS += -O0
suffix := .debug
else
ifeq ($(debug),no)