Don't try to guess linker on non-Linux builds

This commit is contained in:
Ivan Lezhankin 2020-03-13 18:20:25 +03:00
parent ff91b3f317
commit 0c757decbe

View File

@ -32,8 +32,8 @@ else ()
find_program (GOLD_PATH NAMES "ld.gold" "gold") find_program (GOLD_PATH NAMES "ld.gold" "gold")
endif () endif ()
if (NOT OS_FREEBSD) if (OS_LINUX)
# We prefer LLD linker over Gold or BFD. # We prefer LLD linker over Gold or BFD on Linux.
if (NOT LINKER_NAME) if (NOT LINKER_NAME)
if (LLD_PATH) if (LLD_PATH)
if (COMPILER_GCC) if (COMPILER_GCC)