2013-12-30 07:14:26 +08:00
|
|
|
# If we don't need RTTI or EH, there's no reason to export anything
|
2013-12-30 07:15:01 +08:00
|
|
|
# from the plugin.
|
2018-05-23 20:48:55 +08:00
|
|
|
if( NOT MSVC ) # MSVC mangles symbols differently, and
|
|
|
|
# PrintFunctionNames.export contains C++ symbols.
|
2013-12-30 08:05:56 +08:00
|
|
|
if( NOT LLVM_REQUIRES_RTTI )
|
|
|
|
if( NOT LLVM_REQUIRES_EH )
|
|
|
|
set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/PrintFunctionNames.exports)
|
|
|
|
endif()
|
2013-12-30 07:14:26 +08:00
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2018-12-21 06:04:36 +08:00
|
|
|
add_llvm_library(PrintFunctionNames MODULE PrintFunctionNames.cpp PLUGIN_TOOL clang)
|
2014-07-13 21:40:23 +08:00
|
|
|
|
|
|
|
if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN))
|
2016-06-10 05:29:55 +08:00
|
|
|
target_link_libraries(PrintFunctionNames PRIVATE
|
2014-07-13 21:40:23 +08:00
|
|
|
clangAST
|
|
|
|
clangBasic
|
|
|
|
clangFrontend
|
|
|
|
LLVMSupport
|
|
|
|
)
|
|
|
|
endif()
|