mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:07:46 +00:00
Everywhere: Add RISC-V 64 target to the build system
This is a minimal set of changes to allow `serenity.sh build riscv64` to successfully generate the build environment and start building. This includes some, but not all, assembly stubs that will be needed later on; they are currently empty.
This commit is contained in:
parent
c63fe0e1f1
commit
096cecb95e
12 changed files with 39 additions and 4 deletions
|
@ -40,3 +40,8 @@ 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 BOTH)
|
||||
|
||||
# Sets a common default architecture for all toolchains. Be sure to update this in GNUToolchain as well!
|
||||
if("${SERENITY_ARCH}" STREQUAL "riscv64")
|
||||
add_compile_options(-march=rv64gc)
|
||||
endif()
|
||||
|
|
|
@ -37,3 +37,8 @@ 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 BOTH)
|
||||
|
||||
# Sets a common default architecture for all toolchains. Be sure to update this in ClangToolchain as well!
|
||||
if("${SERENITY_ARCH}" STREQUAL "riscv64")
|
||||
add_compile_options(-march=rv64gc)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue