mirror of
https://github.com/citron-neo/emulator.git
synced 2026-07-05 15:21:57 -07:00
cmake: skip -fuse-ld=lld on Apple platforms
Signed-off-by: Mythrax <mythrax@mytrax-rs.org>
This commit is contained in:
+1
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user