diff options
Diffstat (limited to 'core/cortex-m/build.mk')
-rw-r--r-- | core/cortex-m/build.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/cortex-m/build.mk b/core/cortex-m/build.mk index b18d01e114..cf2d851c77 100644 --- a/core/cortex-m/build.mk +++ b/core/cortex-m/build.mk @@ -34,6 +34,10 @@ CFLAGS_CPU += -fno-ipa-modref # Set an option to force LTO to generate target machine code export CFLAGS_LTO_PARTIAL_LINK := -flinker-output=nolto-rel +# -ffat-lto-objects is a workaround for b/134623681 +# Disable assembler warnings +# TODO (b/238039591) Remove `-Wa,W` when binutils is fixed. +CFLAGS_CPU += -Wa,-W -ffat-lto-objects -fconserve-stack endif core-y=cpu.o init.o ldivmod.o llsr.o uldivmod.o vecttable.o |