Skip to content
Snippets Groups Projects
Commit c90a5c7e authored by Amitesh Singh's avatar Amitesh Singh
Browse files

fix compilation for arch linux


on arch linux, the risc compiler name is different.
Add some logic to pick correct risc compiler on arch linux

Signed-off-by: default avatarAmitesh Singh <singh.amitesh@gmail.com>
parent 2fa932a6
No related branches found
No related tags found
No related merge requests found
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment