Everywhere: Enable building userspace and test binaries on AARCH64

Surely this will just work once the kernel boots, right?
This commit is contained in:
Gunnar Beutner 2022-10-12 22:19:51 +02:00 committed by Linus Groh
parent a7a71be113
commit 3065577b54
Notes: sideshowbarker 2024-07-17 18:08:55 +09:00

View file

@ -228,20 +228,22 @@ endif()
add_subdirectory(AK) add_subdirectory(AK)
add_subdirectory(Kernel) add_subdirectory(Kernel)
if(NOT "${SERENITY_ARCH}" STREQUAL "aarch64")
if (ENABLE_MOLD_LINKER) if (ENABLE_MOLD_LINKER)
add_link_options(-fuse-ld=mold) add_link_options(-fuse-ld=mold)
endif() endif()
if(NOT "${SERENITY_ARCH}" STREQUAL "aarch64")
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang$" OR ENABLE_MOLD_LINKER) if (CMAKE_CXX_COMPILER_ID MATCHES "Clang$" OR ENABLE_MOLD_LINKER)
add_link_options(LINKER:--pack-dyn-relocs=relr) add_link_options(LINKER:--pack-dyn-relocs=relr)
else() else()
add_link_options(LINKER:-z,pack-relative-relocs) add_link_options(LINKER:-z,pack-relative-relocs)
endif() endif()
endif()
add_subdirectory(Userland) add_subdirectory(Userland)
add_subdirectory(Tests) add_subdirectory(Tests)
endif()
if (ENABLE_COMPILETIME_HEADER_CHECK) if (ENABLE_COMPILETIME_HEADER_CHECK)
add_subdirectory(Meta/HeaderCheck) add_subdirectory(Meta/HeaderCheck)
endif() endif()