CMake: Don't hardcode use of mold for linking

This commit is contained in:
Tony Wasserka 2024-03-12 15:40:24 +01:00
parent a4f6eac9a0
commit d541fad7b7

View file

@ -8,8 +8,9 @@ project(mikage)
enable_testing()
if (NOT ANDROID)
add_link_options("-fuse-ld=mold")
set(OVERRIDE_LINKER "" CACHE STRING "Linker to use for compilation")
if (OVERRIDE_LINKER)
add_link_options("-fuse-ld=${OVERRIDE_LINKER}")
endif()
option(USE_ASAN "Enable address sanitizer" OFF)