Skip to content

Commit

Permalink
support LLVM for RISCV64
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Heider <[email protected]>
  • Loading branch information
axel-h authored and lsf37 committed Jan 8, 2024
1 parent 84b150a commit 702d24c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion standalone-kernel/compile_kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,17 @@ case $INPUT_ARCH in
esac
;;
RISCV64)
extra_config="${extra_config} -DRISCV64=TRUE"
case $INPUT_COMPILER in
gcc)
extra_config="${extra_config} -DRISCV64=TRUE"
;;
llvm)
extra_config="${extra_config} -DTRIPLE=riscv64-unknown-elf"
;;
*)
echo "Unknown input compiler"
exit 1
esac
;;
X64)
# no config needed
Expand Down

0 comments on commit 702d24c

Please sign in to comment.