mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Update tools.cmake
This commit is contained in:
parent
d7b276551c
commit
c181fdc6a9
@ -27,8 +27,13 @@ option (LINKER_NAME "Linker name or full path")
|
||||
find_program (LLD_PATH NAMES "ld.lld" "lld" "lld-${COMPILER_VERSION_MAJOR}")
|
||||
find_program (GOLD_PATH NAMES "ld.gold" "gold")
|
||||
|
||||
# We prefer LLD linker over Gold or BFD.
|
||||
|
||||
if (NOT LINKER_NAME)
|
||||
if (LLD_PATH)
|
||||
# GCC driver requires one of supported linker names like "lld".
|
||||
# Clang driver simply allows full linker path.
|
||||
|
||||
if (COMPILER_GCC)
|
||||
get_filename_component(LLD_BASE_NAME ${LLD_PATH} NAME)
|
||||
if (LLD_BASE_NAME STREQUAL ld.lld)
|
||||
|
Loading…
Reference in New Issue
Block a user