diff options
Diffstat (limited to 'payloads/libpayload/tests')
-rw-r--r-- | payloads/libpayload/tests/Makefile.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/payloads/libpayload/tests/Makefile.mk b/payloads/libpayload/tests/Makefile.mk index e271a7cea8..9bac9e6505 100644 --- a/payloads/libpayload/tests/Makefile.mk +++ b/payloads/libpayload/tests/Makefile.mk @@ -47,7 +47,13 @@ TEST_CFLAGS += -Wwrite-strings -Wno-trigraphs -Wimplicit-fallthrough TEST_CFLAGS += -Wstrict-aliasing -Wshadow -Werror TEST_CFLAGS += -Wno-unknown-warning-option -Wno-source-mgr -Wno-main-return-type -TEST_CFLAGS += -std=gnu11 -Os -ffunction-sections -fdata-sections -fno-builtin +TEST_CFLAGS += -std=gnu11 -ffunction-sections -fdata-sections -fno-builtin + +ifneq ($(filter-out 0,$(DEBUG)),) +TEST_CFLAGS += -Og -ggdb3 +else +TEST_CFLAGS += -Os +endif # Make unit-tests detectable by the code TEST_CFLAGS += -D__TEST__ |