Skip to content
Snippets Groups Projects
Commit b59a9cb6 authored by Joakim Nohlgård's avatar Joakim Nohlgård Committed by Neil Jones
Browse files

cpu/mips32r2_common: Use GCC for assembler files if TOOLCHAIN=llvm

Some headers in the tool chain cause compilation errors with Clang in
assembly mode.
parent 14ec5237
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,12 @@ ifeq ($(USE_DSP),1) ...@@ -49,6 +49,12 @@ ifeq ($(USE_DSP),1)
export CFLAGS += -mdsp export CFLAGS += -mdsp
endif endif
ifeq ($(TOOLCHAIN),llvm)
# The MIPS toolchain headers in assembly mode are not compatible with Clang
export CCAS = $(PREFIX)gcc
export CCASUWFLAGS += -target $(TARGET_ARCH)
endif
export ASFLAGS += $(CFLAGS_CPU) $(CFLAGS_OPT) $(CFLAGS_DBG) export ASFLAGS += $(CFLAGS_CPU) $(CFLAGS_OPT) $(CFLAGS_DBG)
export LINKFLAGS += $(MIPS_HAL_LDFLAGS) export LINKFLAGS += $(MIPS_HAL_LDFLAGS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment