Skip to content

Commit

Permalink
fix compilation for arch linux
Browse files Browse the repository at this point in the history
on arch linux, the risc compiler name is different.
Add some logic to pick correct risc compiler on arch linux

Signed-off-by: Amitesh Singh <[email protected]>
  • Loading branch information
amitesh-singh committed Feb 4, 2024
1 parent 2fa932a commit c90a5c7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions ch32v003fun/ch32v003fun.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@

PREFIX?=riscv64-unknown-elf
ifeq ($(OS),Windows_NT)
PREFIX?=riscv64-unknown-elf
else
ifeq (, $(shell which riscv64-unknown-elf-gcc))
PREFIX?=riscv64-elf
else
PREFIX?=riscv64-unknown-elf
endif
endif

CH32V003FUN?=../../ch32v003fun
MINICHLINK?=$(CH32V003FUN)/../minichlink
Expand Down

0 comments on commit c90a5c7

Please sign in to comment.