mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 10:37:44 +00:00
Toolchain: Add support for building the userland with the mold linker
This commit adds support for building the SerenityOS userland with the new [mold linker]. This is not enabled by default yet; to link using mold, run the `Toolchain/BuildMold.sh` script to build the latest release of mold, and set the `ENABLE_MOLD_LINKER` CMake variable to ON. This option relies on toolchain support that has been added just recently, so you might need to rebuild your toolchain for mold to work. [mold linker]: https://github.com/rui314/mold
This commit is contained in:
parent
ad649c48da
commit
4055c393fc
7 changed files with 60 additions and 1 deletions
|
@ -267,6 +267,9 @@ endif()
|
|||
add_subdirectory(AK)
|
||||
add_subdirectory(Kernel)
|
||||
if(NOT "${SERENITY_ARCH}" STREQUAL "aarch64")
|
||||
if (ENABLE_MOLD_LINKER)
|
||||
add_link_options(-fuse-ld=mold)
|
||||
endif()
|
||||
add_subdirectory(Userland)
|
||||
add_subdirectory(Tests)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue