diff options
Diffstat (limited to 'examples/make.mk')
| -rw-r--r-- | examples/make.mk | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/make.mk b/examples/make.mk index fc9745131..4c8b703c2 100644 --- a/examples/make.mk +++ b/examples/make.mk @@ -5,6 +5,8 @@ # Compiler ifeq ($(BOARD), msp_exp430f5529lp) CROSS_COMPILE = msp430-elf- +else ifeq ($(BOARD), fomu) + CROSS_COMPILE = riscv-none-embed- else CROSS_COMPILE = arm-none-eabi- endif @@ -74,6 +76,7 @@ CFLAGS += \ -Wno-deprecated-declarations \ -Wnested-externs \ -Wunreachable-code \ + -Wno-error=lto-type-mismatch \ -ffunction-sections \ -fdata-sections @@ -84,11 +87,7 @@ CFLAGS += \ ifeq ($(DEBUG), 1) CFLAGS += -Og -ggdb else - ifneq ($(BOARD),spresense) - CFLAGS += -flto -Os - else - CFLAGS += -Os - endif + CFLAGS += -Os endif # TUSB Logging option |
