mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #20141 from maribu/arch/riscv
makefiles/arch/riscv.inc.mk: Always provide TARGET_ARCH_LLVM
This commit is contained in:
commit
03a4d31e02
@ -66,11 +66,10 @@ ifeq (1,$(GCC_DEFAULTS_TO_NEW_RISCV_ISA))
|
|||||||
CFLAGS_CPU += -misa-spec=2.2
|
CFLAGS_CPU += -misa-spec=2.2
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(TOOLCHAIN),llvm)
|
# Always use riscv32-none-elf as target triple for clang, as some
|
||||||
# Always use riscv32-none-elf as target triple for clang, as some
|
# autodetected gcc target triples are incompatible with clang
|
||||||
# autodetected gcc target triples are incompatible with clang
|
TARGET_ARCH_LLVM := riscv32-none-elf
|
||||||
TARGET_ARCH_LLVM := riscv32-none-elf
|
ifneq ($(TOOLCHAIN),llvm)
|
||||||
else
|
|
||||||
CFLAGS_CPU += -mcmodel=medlow -msmall-data-limit=8
|
CFLAGS_CPU += -mcmodel=medlow -msmall-data-limit=8
|
||||||
# We cannot invoke the compiler on the host system if build in docker.
|
# We cannot invoke the compiler on the host system if build in docker.
|
||||||
# Instead, hard-code the required flags for the docker toolchain here
|
# Instead, hard-code the required flags for the docker toolchain here
|
||||||
|
Loading…
Reference in New Issue
Block a user