mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
c1b672534d
Summary: This function is very similar to add_llvm_library(), so this patch merges it into add_llvm_library() and replaces all calls to add_llvm_loadable_module(lib ...) with add_llvm_library(lib MODULE ...) Reviewers: philip.pfaffe, beanz, chandlerc Reviewed By: philip.pfaffe Subscribers: chapuni, mgorny, llvm-commits Differential Revision: https://reviews.llvm.org/D51748 llvm-svn: 349839
19 lines
350 B
CMake
19 lines
350 B
CMake
set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/gold.exports)
|
|
|
|
if( LLVM_ENABLE_PIC AND LLVM_BINUTILS_INCDIR )
|
|
include_directories( ${LLVM_BINUTILS_INCDIR} )
|
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
${LLVM_TARGETS_TO_BUILD}
|
|
Linker
|
|
LTO
|
|
BitWriter
|
|
IPO
|
|
)
|
|
|
|
add_llvm_library(LLVMgold MODULE
|
|
gold-plugin.cpp
|
|
)
|
|
|
|
endif()
|