mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +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
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)
|
||||
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)
|
||||
else()
|
||||
add_link_options(LINKER:-z,pack-relative-relocs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue