cmake: skip -fuse-ld=lld on Apple platforms

Signed-off-by: Mythrax <mythrax@mytrax-rs.org>
This commit is contained in:
Mythrax
2026-04-27 17:07:09 +10:00
parent 68a2584cbb
commit cf89d0f359
+1 -3
View File
@@ -828,9 +828,7 @@ if (MSVC AND CMAKE_GENERATOR STREQUAL "Ninja")
)
endif()
# Select a faster linker (mold > lld) for GCC/Clang builds.
# For Clang, we always default to lld.
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR (CITRON_USE_FASTER_LD AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU"))
if (NOT APPLE AND (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR (CITRON_USE_FASTER_LD AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")))
# We will assume that if the compiler is GCC, it will attempt to use ld.bfd by default.
# Try to pick a faster linker.
find_program(LLD lld)