Message ID | 1439369820-27005-27-git-send-email-luis.henriques@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/arch/arc/Makefile b/arch/arc/Makefile index 8c0b1aa56f7e..429279bc3028 100644 --- a/arch/arc/Makefile +++ b/arch/arc/Makefile @@ -44,7 +44,8 @@ endif ifndef CONFIG_CC_OPTIMIZE_FOR_SIZE # Generic build system uses -O2, we want -O3 -cflags-y += -O3 +# Note: No need to add to cflags-y as that happens anyways +ARCH_CFLAGS += -O3 endif # small data is default for elf32 tool-chain. If not usable, disable it