[CMake] Also search for prefixed versions of ld.gold

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@236312 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Niels Ole Salscheider 2015-05-01 11:58:30 +00:00
parent 80683c0be6
commit 16b7c0f4fb

View File

@ -526,7 +526,7 @@ else()
endif() endif()
endif() endif()
find_program(GOLD_EXECUTABLE NAMES ld.gold ld DOC "The gold linker") find_program(GOLD_EXECUTABLE NAMES ${LLVM_DEFAULT_TARGET_TRIPLE}-ld.gold ld.gold ${LLVM_DEFAULT_TARGET_TRIPLE}-ld ld DOC "The gold linker")
set(LLVM_BINUTILS_INCDIR "" CACHE PATH set(LLVM_BINUTILS_INCDIR "" CACHE PATH
"PATH to binutils/include containing plugin-api.h for gold plugin.") "PATH to binutils/include containing plugin-api.h for gold plugin.")