mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 11:35:51 -04:00

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
21 lines
416 B
CMake
21 lines
416 B
CMake
# If we don't need RTTI or EH, there's no reason to export anything
|
|
# from the hello plugin.
|
|
if( NOT LLVM_REQUIRES_RTTI )
|
|
if( NOT LLVM_REQUIRES_EH )
|
|
set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/Hello.exports)
|
|
endif()
|
|
endif()
|
|
|
|
if(WIN32 OR CYGWIN)
|
|
set(LLVM_LINK_COMPONENTS Core Support)
|
|
endif()
|
|
|
|
add_llvm_library( LLVMHello MODULE
|
|
Hello.cpp
|
|
|
|
DEPENDS
|
|
intrinsics_gen
|
|
PLUGIN_TOOL
|
|
opt
|
|
)
|