mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-22 02:05:01 +00:00
69e8318af3
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@349839 91177308-0d34-0410-b5e6-96231b3b80d8
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()
|