Skip to content

Commit c5ffe96

Browse files
committed
fix riscv64 cmake toolchain file
1 parent 5b94d9e commit c5ffe96

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cc_toolchain/riscv64-nerves-linux-gnu.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
# sudo mv nerves_toolchain_riscv64_nerves_linux_gnu-linux_x86_64-13.2.0 /usr/local/bin/nerves_toolchain_riscv64_nerves_linux_gnu-linux_x86_64-13.2.0
77
#
88
set(CMAKE_SYSTEM_NAME Linux)
9-
set(CMAKE_SYSTEM_PROCESSOR armv6)
9+
set(CMAKE_SYSTEM_PROCESSOR riscv64)
1010

11-
set(CMAKE_C_COMPILER "/usr/local/bin/nerves_toolchain_riscv64_nerves_linux_gnu-linux_x86_64-13.2.0/bin/riscv64-nerves-linux-gnueabihf-gcc")
12-
set(CMAKE_CXX_COMPILER "/usr/local/bin/nerves_toolchain_riscv64_nerves_linux_gnu-linux_x86_64-13.2.0/bin/riscv64-nerves-linux-gnueabihf-g++")
11+
set(CMAKE_C_COMPILER "/usr/local/bin/nerves_toolchain_riscv64_nerves_linux_gnu-linux_x86_64-13.2.0/bin/riscv64-nerves-linux-gnu-gcc")
12+
set(CMAKE_CXX_COMPILER "/usr/local/bin/nerves_toolchain_riscv64_nerves_linux_gnu-linux_x86_64-13.2.0/bin/riscv64-nerves-linux-gnu-g++")
1313

14-
set(CMAKE_FIND_ROOT_PATH /usr/arm-linux-gnueabihf)
14+
set(CMAKE_FIND_ROOT_PATH /usr/riscv64-linux-gnu)
1515

1616
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
1717
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)

0 commit comments

Comments
 (0)