1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

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.
This commit is contained in:
Joakim Nohlgård 2017-03-01 11:26:49 +01:00 committed by Neil Jones
parent 14ec5237a1
commit b59a9cb667

View File

@ -49,6 +49,12 @@ ifeq ($(USE_DSP),1)
export CFLAGS += -mdsp
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 LINKFLAGS += $(MIPS_HAL_LDFLAGS)