summarylogtreecommitdiffstats
path: root/toolchain-riscv64-elf.cmake
blob: 1f5c9c75e59e754a12b0a2e56ba5b3ab73bd9b26 (plain)
1
2
3
4
5
6
7
8
9
10
11
set (CMAKE_SYSTEM_NAME none)
set (CMAKE_SYSTEM_PROCESSOR riscv64)

set (CMAKE_C_COMPILER riscv64-elf-gcc)
set (CMAKE_CXX_COMPILER riscv64-elf-g++)

set (CMAKE_FIND_ROOT_PATH /usr/riscv64-elf)
set (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set (CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)