[llvm] r235918 - Allow building the gold plugin even if the gold binary is not found.
Rafael Espindola
rafael.espindola at gmail.com
Mon Apr 27 14:08:47 PDT 2015
Author: rafael
Date: Mon Apr 27 16:08:47 2015
New Revision: 235918
URL: http://llvm.org/viewvc/llvm-project?rev=235918&view=rev
Log:
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.
Modified:
llvm/trunk/cmake/config-ix.cmake
Modified: llvm/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/config-ix.cmake?rev=235918&r1=235917&r2=235918&view=diff
==============================================================================
--- llvm/trunk/cmake/config-ix.cmake (original)
+++ llvm/trunk/cmake/config-ix.cmake Mon Apr 27 16:08:47 2015
@@ -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")
More information about the llvm-commits
mailing list