1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 23:37:35 +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:
kleines Filmröllchen 2023-08-17 11:32:32 +02:00 committed by Andrew Kaster
parent c63fe0e1f1
commit 096cecb95e
12 changed files with 39 additions and 4 deletions

View file

@ -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()

View file

@ -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()