We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bced4a6 commit fb8e11aCopy full SHA for fb8e11a
ch32fun/ch32fun.mk
@@ -5,13 +5,15 @@ else
5
endif
6
7
# Default/fallback prefix
8
-PREFIX:=riscv64-elf
+PREFIX_DEFAULT:=riscv64-elf
9
10
ifneq ($(shell $(WHICH) riscv64-unknown-elf-gcc),)
11
- PREFIX:=riscv64-unknown-elf
+ PREFIX_DEFAULT:=riscv64-unknown-elf
12
else ifneq ($(shell $(WHICH) riscv-none-elf-gcc),)
13
- PREFIX:=riscv-none-elf
+ PREFIX_DEFAULT:=riscv-none-elf
14
15
+
16
+PREFIX?=$(PREFIX_DEFAULT)
17
# We used to check if riscv64-linux-gnu-gcc exists, because it would still produce valid output with -ffreestanding.
18
# It was different enough that we decided not to automatically fallback to it.
19
0 commit comments