mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
Meta: Use correct variable for checking if the mold linker is used
This variable was originally called USE_MOLD_LINKER, but it was changed to ENABLE_MOLD_LINKER during review to be consistent with other configuration options. I branched off the commits that added RELR support before this change, and I failed to update the variable name there.
This commit is contained in:
parent
c375182be6
commit
ee9125fa9a
Notes:
sideshowbarker
2024-07-17 18:32:33 +09:00
Author: https://github.com/BertalanD Commit: https://github.com/SerenityOS/serenity/commit/ee9125fa9a Pull-request: https://github.com/SerenityOS/serenity/pull/12649
1 changed files with 1 additions and 1 deletions
|
@ -280,7 +280,7 @@ if(NOT "${SERENITY_ARCH}" STREQUAL "aarch64")
|
||||||
add_link_options(-fuse-ld=mold)
|
add_link_options(-fuse-ld=mold)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang$" OR USE_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)
|
||||||
|
|
Loading…
Reference in a new issue