1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

[CMake] Restrict libxar linkage to just llvm-objdump

At some point we're going to need libObject to have this dependency, but as it is now this is causing too many headaches. This commit will reduce the linkage to just llvm-objdump where it is strictly needed, and we'll cross the libObject bridge later when we need it.

llvm-svn: 270866
This commit is contained in:
Chris Bieneman 2016-05-26 16:32:40 +00:00
parent af7bf14481
commit ca3f24eddb
3 changed files with 4 additions and 5 deletions

View File

@ -21,6 +21,4 @@ add_llvm_library(LLVMObject
DEPENDS
intrinsics_gen
LINK_LIBS ${XAR_LIB}
)

View File

@ -24,9 +24,6 @@ elseif( CMAKE_HOST_UNIX )
if( UNIX AND NOT (BEOS OR HAIKU) )
set(system_libs ${system_libs} m)
endif()
if(HAVE_LIBXAR)
list(APPEND system_libs ${XAR_LIB})
endif()
endif( MSVC OR MINGW )
add_llvm_library(LLVMSupport

View File

@ -17,3 +17,7 @@ add_llvm_tool(llvm-objdump
ELFDump.cpp
MachODump.cpp
)
if(HAVE_LIBXAR)
target_link_libraries(llvm-objdump ${XAR_LIB})
endif()