Skip to content

Commit

Permalink
cmake: Add RISC-V default toolchains to gcc.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
kent-mcleod authored and pingerino committed Apr 18, 2018
1 parent 61df56a commit 42230e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gcc.cmake
Expand Up @@ -30,6 +30,10 @@ if("${CROSS_COMPILER_PREFIX}" STREQUAL "")
set(CROSS_COMPILER_PREFIX "arm-linux-gnueabihf-" CACHE INTERNAL "")
elseif(AARCH64)
set(CROSS_COMPILER_PREFIX "aarch64-linux-gnu-" CACHE INTERNAL "")
elseif(RISCV32)
set(CROSS_COMPILER_PREFIX "riscv32-unknown-elf-" CACHE INTERNAL "")
elseif(RISCV64)
set(CROSS_COMPILER_PREFIX "riscv64-unknown-elf-" CACHE INTERNAL "")
endif()
endif()

Expand Down

0 comments on commit 42230e2

Please sign in to comment.