Added compiler and newlib info for linux systems.
This commit is contained in:
parent
62008cb67b
commit
1b1a288ef6
1 changed files with 5 additions and 0 deletions
|
@ -41,6 +41,11 @@ if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "FreeBSD")
|
|||
|
||||
elseif(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Linux")
|
||||
message("OS:: LINUX")
|
||||
set(NEWLIB /opt/riscv/riscv32-unknown-elf/include)
|
||||
set(CMAKE_C_COMPILER riscv32-unknown-elf-gcc)
|
||||
set(CMAKE_CXX_COMPILER riscv32-unknown-elf-g++)
|
||||
set(CMAKE_C_STANDARD_COMPUTED_DEFAULT GNU)
|
||||
set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT GNU)
|
||||
else()
|
||||
message("OS:: UNKNOWN?")
|
||||
message("Please add your OS details to the toolchain file.")
|
||||
|
|
Loading…
Add table
Reference in a new issue