board/native: no omit frame pointer if backtrace is used

this makes riots test work but may have different result than O0
see man 3 backtrace #NOTES
This commit is contained in:
Karl Fessel 2021-03-11 15:44:10 +01:00
parent 4d645a23aa
commit cfaa57fe6c

View File

@ -22,7 +22,12 @@ export GPROF ?= gprof
# basic cflags:
CFLAGS += -Wall -Wextra -pedantic $(CFLAGS_DBG) $(CFLAGS_OPT)
CFLAGS_DBG ?= -g3
CFLAGS_OPT ?= -Og
ifneq (,$(filter backtrace,$(USEMODULE)))
$(warning module backtrace is used, do not omit frame pointers)
CFLAGS_OPT ?= -Og -fno-omit-frame-pointer
else
CFLAGS_OPT ?= -Og
endif
# default std set to gnu11 if not overwritten by user
ifeq (,$(filter -std=%, $(CFLAGS)))