Skip to content

Commit

Permalink
Merge pull request #20141 from maribu/arch/riscv
Browse files Browse the repository at this point in the history
makefiles/arch/riscv.inc.mk: Always provide TARGET_ARCH_LLVM
  • Loading branch information
maribu authored Dec 8, 2023
2 parents 481e3a9 + 287280f commit 03a4d31
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions makefiles/arch/riscv.inc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,10 @@ ifeq (1,$(GCC_DEFAULTS_TO_NEW_RISCV_ISA))
CFLAGS_CPU += -misa-spec=2.2
endif

ifeq ($(TOOLCHAIN),llvm)
# Always use riscv32-none-elf as target triple for clang, as some
# autodetected gcc target triples are incompatible with clang
TARGET_ARCH_LLVM := riscv32-none-elf
else
# Always use riscv32-none-elf as target triple for clang, as some
# autodetected gcc target triples are incompatible with clang
TARGET_ARCH_LLVM := riscv32-none-elf
ifneq ($(TOOLCHAIN),llvm)
CFLAGS_CPU += -mcmodel=medlow -msmall-data-limit=8
# We cannot invoke the compiler on the host system if build in docker.
# Instead, hard-code the required flags for the docker toolchain here
Expand Down

0 comments on commit 03a4d31

Please sign in to comment.