try fix aarch64

This commit is contained in:
Yatsishin Ilya 2021-05-25 12:52:53 +03:00
parent 437a66c7ed
commit 07556fac2c

View File

@ -77,6 +77,11 @@ if (OS_LINUX AND NOT LINKER_NAME)
endif ()
endif ()
if (LINKER_NAME AND NOT LLD_PATH)
find_program (LLD_PATH NAMES "ld.lld-${COMPILER_VERSION_MAJOR}" "lld-${COMPILER_VERSION_MAJOR}" "ld.lld" "lld")
find_program (GOLD_PATH NAMES "ld.gold" "gold")
endif ()
if (LINKER_NAME)
if (COMPILER_CLANG AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 12.0.0 OR CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 12.0.0))
find_program (LLD_PATH NAMES ${LINKER_NAME})