Skip to content

Commit

Permalink
Merge pull request #259 from amitesh-singh/ami/fix_arch_compilation
Browse files Browse the repository at this point in the history
fix compilation for arch linux
  • Loading branch information
cnlohr authored Feb 5, 2024
2 parents f3e37e8 + c90a5c7 commit 45af736
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 45af736

Please sign in to comment.