From ace4d56d7f0a0a7c2dbd9013906f78072da5adf8 Mon Sep 17 00:00:00 2001 From: belliash Date: Sat, 15 Jun 2019 18:12:27 +0200 Subject: [PATCH] The '-Og' is a better choice than '-O0' for producing debuggable code because some compiler passes that collect debug information are disabled at '-O0'. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 62bbdf0..3ea13e0 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ CFLAGS = -std=c99 -D_GNU_SOURCE -fPIC -Iinclude -I. -Wunused -Wall -Wextra -Wpedantic # Additional CFLAGS for debug build -DCFLAGS = -O0 -g3 +DCFLAGS = -Og -g3 # Addditional CFLAGS for release build RCFLAGS = -O3 -s