Allow building the gold plugin even if the gold binary is not found.
authorRafael Espindola <rafael.espindola@gmail.com>
Mon, 27 Apr 2015 21:08:47 +0000 (21:08 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Mon, 27 Apr 2015 21:08:47 +0000 (21:08 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235918 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/config-ix.cmake

index c57f9006a8474414e9e373f71284affd82f8b297..3b3292c2e470c9353643ff4ffa528df8f7225dff 100755 (executable)
@@ -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")