From b8a340641a809dd9f612a8208b87c6a6ca94a104 Mon Sep 17 00:00:00 2001 From: pstef <3462925+pstef@users.noreply.github.com> Date: Sat, 15 Mar 2025 10:30:06 +0000 Subject: [PATCH] Make debugging on CTR easier Only omit frame pointers on non-debug builds. --- Makefile.ctr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.ctr b/Makefile.ctr index 45d6f91936..5fc168ab25 100644 --- a/Makefile.ctr +++ b/Makefile.ctr @@ -154,7 +154,7 @@ LIBDIRS := -L. -L$(CTRULIB)/lib ARCH := -march=armv6k -mtune=mpcore -mfloat-abi=hard -marm -mfpu=vfp -mtp=soft CFLAGS += -mword-relocations \ - -fomit-frame-pointer -ffast-math \ + -ffast-math \ -Werror=implicit-function-declaration \ $(ARCH) @@ -168,7 +168,7 @@ endif ifeq ($(DEBUG), 1) CFLAGS += -O0 -g else - CFLAGS += -O3 + CFLAGS += -fomit-frame-pointer -O3 endif ifeq ($(CONSOLE_LOG), 1)