mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
x86: Use -O0 instead of -Og for debug build
This patch replaces the gcc option '-Og' by '-O0' which is used when building debugging binaries. The motivation for this change comes from the fact that we have found at least one optimization done by '-Og' that interfered with one of our debugging sessions.
This commit is contained in:
parent
6b433aede1
commit
c6ef8454a1
@ -18,9 +18,10 @@ ifeq ($(BUILD_RELEASE),1)
|
||||
# binary seems to be broken, check if removing this option fixes the issue.
|
||||
LDFLAGS += -Wl,--strip-all,--gc-sections
|
||||
else
|
||||
CFLAGS += -O0
|
||||
ifeq ($(findstring clang,$(CC)),clang)
|
||||
CFLAGS += -O0 -g
|
||||
CFLAGS += -g
|
||||
else
|
||||
CFLAGS += -Og -ggdb3
|
||||
CFLAGS += -ggdb3
|
||||
endif
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user