From c2e43ee42ca880fa8b0d8c75ede068b9fee9f9f0 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 9 Jul 2019 19:27:55 +1000 Subject: [PATCH] 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. --- src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 2f737066..d6e23170 100644 --- a/src/Makefile +++ b/src/Makefile @@ -10,7 +10,7 @@ endif ifeq ($(debug),yes) CPPFLAGS += -DKAK_DEBUG - CXXFLAGS += -Og + CXXFLAGS += -O0 suffix := .debug else ifeq ($(debug),no)