Skip to content
Snippets Groups Projects
Commit 136ba536 authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

cpu/cortexm: move -mno-thumb-interwork from CFLAGS_CPU to CFLAGS

CFLAGS_CPU is used in ASFLAGS, but assembler doesn't know that
parameter. Moving to CFLAGS uses it only for the C compiler.
parent 3af570bd
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ export CFLAGS_CPU = -mcpu=$(MCPU) -mlittle-endian -mthumb $(CFLAGS_FPU) ...@@ -6,7 +6,7 @@ export CFLAGS_CPU = -mcpu=$(MCPU) -mlittle-endian -mthumb $(CFLAGS_FPU)
ifneq (llvm,$(TOOLCHAIN)) ifneq (llvm,$(TOOLCHAIN))
# Clang (observed with v3.7) does not understand -mno-thumb-interwork, only add if # Clang (observed with v3.7) does not understand -mno-thumb-interwork, only add if
# not building with LLVM # not building with LLVM
export CFLAGS_CPU += -mno-thumb-interwork export CFLAGS += -mno-thumb-interwork
endif endif
export CFLAGS_LINK = -ffunction-sections -fdata-sections -fno-builtin -fshort-enums export CFLAGS_LINK = -ffunction-sections -fdata-sections -fno-builtin -fshort-enums
export CFLAGS_DBG ?= -ggdb -g3 export CFLAGS_DBG ?= -ggdb -g3
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment