Skip to content

Commit

Permalink
ADD: llvm cmakelist
Browse files Browse the repository at this point in the history
  • Loading branch information
iansseijelly committed Dec 14, 2024
1 parent 8d48c67 commit 095c43d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions riscv-llvm.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
# RISCV Toolchain
#################################
option(RISCV "Build for RISC-V" ON)
option(USE_LLVM "Use LLVM toolchain" ON)

set(CMAKE_SYSTEM_NAME "Generic" CACHE STRING "")
set(CMAKE_SYSTEM_PROCESSOR "riscv" CACHE STRING "")

set(TOOLCHAIN_PREFIX "riscv64-unknown-elf-")

set(MYRISCV "/scratch/iansseijelly/riscv-toolchain-build")
set(MYRISCV "/scratch/iansseijelly/riscv-llvm-install")

set(CMAKE_AR "llvm-ar")
set(CMAKE_ASM_COMPILER "${MYRISCV}/bin/clang")
set(CMAKE_C_COMPILER "${MYRISCV}/bin/clang")
set(CMAKE_CXX_COMPILER "${MYRISCV}/bin/clang++")
set(CMAKE_LINKER "lld")
set(CMAKE_LINKER "${MYRISCV}/bin/lld")
set(CMAKE_OBJCOPY "llvm-objcopy")
set(CMAKE_OBJDUMP "llvm-objdump")
set(CMAKE_SIZE "llvm-size")
Expand Down

0 comments on commit 095c43d

Please sign in to comment.