Skip to content

Commit

Permalink
Update makefiles/arch/riscv.inc.mk
Browse files Browse the repository at this point in the history
Co-authored-by: benpicco <[email protected]>
  • Loading branch information
maribu and benpicco authored Sep 15, 2020
1 parent f429602 commit c122c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion makefiles/arch/riscv.inc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ TARGET_ARCH_RISCV ?= riscv-none-elf
# or riscv-none-embed is present.
ifeq (riscv-none-elf,$(TARGET_ARCH_RISCV))
ifeq (,$(shell which $(TARGET_ARCH_RISCV)-gcc))
ifneq (,$(shell which riscv64-unknown-gcc))
ifneq (,$(shell which riscv64-unknown-elf-gcc))
TARGET_ARCH_RISCV := riscv64-unknown-elf
else ifneq (,$(shell which riscv-none-embed-gcc))
$(info Falling back to legacy riscv-none-embed toolchain)
Expand Down

0 comments on commit c122c4b

Please sign in to comment.