Skip to content

Commit

Permalink
Meta: Use correct variable for checking if the mold linker is used
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
BertalanD authored and IdanHo committed Feb 19, 2022
1 parent c375182 commit ee9125f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ee9125f

Please sign in to comment.