From 6b27999196e7877a6fdaee4dcd47352c29de67dc Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Mon, 27 Apr 2015 21:08:47 +0000 Subject: [PATCH] Allow building the gold plugin even if the gold binary is not found. The gold binary is not required to build the plugin. All that is needed is for LLVM_BINUTILS_INCDIR to point to the directory containing plugin-api.h. llvm-svn: 235918 --- llvm/cmake/config-ix.cmake | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/llvm/cmake/config-ix.cmake b/llvm/cmake/config-ix.cmake index c57f900..3b3292c 100755 --- a/llvm/cmake/config-ix.cmake +++ b/llvm/cmake/config-ix.cmake @@ -527,10 +527,8 @@ else() endif() find_program(GOLD_EXECUTABLE NAMES ld.gold ld DOC "The gold linker") -if(GOLD_EXECUTABLE) - set(LLVM_BINUTILS_INCDIR "" CACHE PATH - "PATH to binutils/include containing plugin-api.h for gold plugin.") -endif() +set(LLVM_BINUTILS_INCDIR "" CACHE PATH + "PATH to binutils/include containing plugin-api.h for gold plugin.") if(APPLE) find_program(LD64_EXECUTABLE NAMES ld DOC "The ld64 linker") -- 2.7.4