Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@ jobs:
chmod +x llvm.sh
sudo ./llvm.sh 18
rm llvm.sh
- name: Fix llvm-ar path
run: |
sudo ln -s $(which llvm-ar-18) /usr/bin/llvm-ar || true
- name: Build
run: make
15 changes: 2 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
CC := clang-18
LD := ld.lld-18
OBJCOPY := llvm-objcopy-18
AR := llvm-ar-18
RANLIB := llvm-ranlib-18

UNAME := $(shell uname)
ifeq ($(UNAME), Darwin)
LD := ld.lld
OBJCOPY := llvm-objcopy
RANLIB := llvm-ranlib
AR := llvm-ar
endif
CC := clang
AR := llvm-ar

CFLAGS := --target=riscv64 -march=rv64imc_zba_zbb_zbc_zbs -mabi=lp64
CFLAGS += -Os
Expand Down