summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 472e9cc)
raw | patch | inline | side by side (parent: 472e9cc)
author | Rafael Espindola <rafael.espindola@gmail.com> | |
Fri, 5 Dec 2014 17:25:52 +0000 (17:25 +0000) | ||
committer | Rafael Espindola <rafael.espindola@gmail.com> | |
Fri, 5 Dec 2014 17:25:52 +0000 (17:25 +0000) |
It is only build if LLVM_BINUTILS_INCDIR is explicitly given, so there is
no point in having extra restrictions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223481 91177308-0d34-0410-b5e6-96231b3b80d8
no point in having extra restrictions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223481 91177308-0d34-0410-b5e6-96231b3b80d8
tools/CMakeLists.txt | patch | blob | history | |
tools/gold/CMakeLists.txt | patch | blob | history |
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
index 5905baf98138775bc4da713320587a7139f739b1..9ea5543a0b32209890c8292a1f03ad0adef4a89c 100644 (file)
--- a/tools/CMakeLists.txt
+++ b/tools/CMakeLists.txt
ignore_llvm_tool_subdirectory(llvm-lto)
endif()
-if( LLVM_ENABLE_PIC )
- # TODO: support other systems:
- if( (CMAKE_SYSTEM_NAME STREQUAL "Linux")
- OR (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") )
- add_llvm_tool_subdirectory(gold)
- else()
- ignore_llvm_tool_subdirectory(gold)
- endif()
-else()
- ignore_llvm_tool_subdirectory(gold)
-endif()
+add_llvm_tool_subdirectory(gold)
add_llvm_external_project(clang)
add_llvm_external_project(llgo)
index 3033010182986adc374f85b02d56308f442eeb4b..a70905c84bf0788879cd853cbfc1af8e038db349 100644 (file)
set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/gold.exports)
-if( NOT LLVM_BINUTILS_INCDIR )
- # Nothing to say.
-elseif( NOT EXISTS "${LLVM_BINUTILS_INCDIR}/plugin-api.h" )
- message(STATUS "plugin-api.h not found. gold plugin excluded from the build.")
-else()
+if( LLVM_ENABLE_PIC AND LLVM_BINUTILS_INCDIR )
include_directories( ${LLVM_BINUTILS_INCDIR} )
# Because off_t is used in the public API, the largefile parts are required for