mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
Be less conservative about when we build the gold plugin.
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
This commit is contained in:
parent
472e9cc4bc
commit
33f1a430c2
@ -68,17 +68,7 @@ else()
|
||||
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)
|
||||
|
@ -3,11 +3,7 @@ set(LLVM_BINUTILS_INCDIR "" CACHE PATH
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user