Add -Og for debug builds
On my system, some optimizations are on by default (NixOS), resulting in variables being optimized out on debug builds. It *seems to be* something about a "_FORTIFY_SOURCE" feature? In any case, `-Og` is documented as "Optimize debugging experience".
This commit is contained in:
parent
2bef1f1eb8
commit
a527aea465
|
@ -9,7 +9,7 @@ ifneq ($(gzip_man),yes)
|
|||
endif
|
||||
|
||||
ifeq ($(debug),yes)
|
||||
CPPFLAGS += -DKAK_DEBUG
|
||||
CPPFLAGS += -DKAK_DEBUG -Og
|
||||
suffix := .debug
|
||||
else
|
||||
ifeq ($(debug),no)
|
||||
|
|
Loading…
Reference in New Issue
Block a user