Skip to content

Commit

Permalink
Everywhere: Enable building userspace and test binaries on AARCH64
Browse files Browse the repository at this point in the history
Surely this will just work once the kernel boots, right?
  • Loading branch information
gunnarbeutner authored and linusg committed Oct 14, 2022
1 parent a7a71be commit 3065577
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -228,20 +228,22 @@ endif()

add_subdirectory(AK)
add_subdirectory(Kernel)
if(NOT "${SERENITY_ARCH}" STREQUAL "aarch64")
if (ENABLE_MOLD_LINKER)
add_link_options(-fuse-ld=mold)
endif()

if (ENABLE_MOLD_LINKER)
add_link_options(-fuse-ld=mold)
endif()

if(NOT "${SERENITY_ARCH}" STREQUAL "aarch64")
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang$" OR ENABLE_MOLD_LINKER)
add_link_options(LINKER:--pack-dyn-relocs=relr)
else()
add_link_options(LINKER:-z,pack-relative-relocs)
endif()

add_subdirectory(Userland)
add_subdirectory(Tests)
endif()

add_subdirectory(Userland)
add_subdirectory(Tests)

if (ENABLE_COMPILETIME_HEADER_CHECK)
add_subdirectory(Meta/HeaderCheck)
endif()
Expand Down

0 comments on commit 3065577

Please sign in to comment.