aboutsummaryrefslogtreecommitdiff
path: root/Makefile.flags
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.flags')
-rw-r--r--Makefile.flags4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.flags b/Makefile.flags
index f202a5f54..bf77c2492 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -88,14 +88,14 @@ endif
88#CFLAGS += $(call cc-option,-Wconversion,) 88#CFLAGS += $(call cc-option,-Wconversion,)
89 89
90ifneq ($(CONFIG_DEBUG),y) 90ifneq ($(CONFIG_DEBUG),y)
91CFLAGS += $(call cc-option,-Os,$(call cc-option,-O2,)) 91CFLAGS += $(call cc-option,-Oz,$(call cc-option,-Os,$(call cc-option,-O2,)))
92else 92else
93CFLAGS += $(call cc-option,-g,) 93CFLAGS += $(call cc-option,-g,)
94#CFLAGS += "-D_FORTIFY_SOURCE=2" 94#CFLAGS += "-D_FORTIFY_SOURCE=2"
95ifeq ($(CONFIG_DEBUG_PESSIMIZE),y) 95ifeq ($(CONFIG_DEBUG_PESSIMIZE),y)
96CFLAGS += $(call cc-option,-O0,) 96CFLAGS += $(call cc-option,-O0,)
97else 97else
98CFLAGS += $(call cc-option,-Os,$(call cc-option,-O2,)) 98CFLAGS += $(call cc-option,-Oz,$(call cc-option,-Os,$(call cc-option,-O2,)))
99endif 99endif
100endif 100endif
101ifeq ($(CONFIG_DEBUG_SANITIZE),y) 101ifeq ($(CONFIG_DEBUG_SANITIZE),y)