From: Niels Ole Salscheider Date: Fri, 1 May 2015 11:58:30 +0000 (+0000) Subject: [CMake] Also search for prefixed versions of ld.gold X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=16b7c0f4fb6781ac47016d020e65434e9f465119;p=oota-llvm.git [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 --- diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index 3b3292c2e47..4e22aabd2d9 100755 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -526,7 +526,7 @@ else() 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 "PATH to binutils/include containing plugin-api.h for gold plugin.")