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:
Daniel Bertalan 2022-02-19 13:01:06 +01:00 committed by Idan Horowitz
parent c375182be6
commit ee9125fa9a
Notes: sideshowbarker 2024-07-17 18:32:33 +09:00

View file

@ -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)