24 lines · plain
1# If we don't need RTTI or EH, there's no reason to export anything2# from the plugin.3if(NOT MSVC) # MSVC mangles symbols differently, and4 # PrintLLVMFunctionNames.export contains C++ symbols.5 if(NOT LLVM_REQUIRES_RTTI)6 if(NOT LLVM_REQUIRES_EH)7 set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/LLVMPrintFunctionNames.exports)8 endif()9 endif()10endif()11 12add_llvm_library(LLVMPrintFunctionNames MODULE LLVMPrintFunctionNames.cpp PLUGIN_TOOL clang)13 14if(WIN32 OR CYGWIN)15 set(LLVM_LINK_COMPONENTS16 Support17 )18 clang_target_link_libraries(LLVMPrintFunctionNames PRIVATE19 clangAST20 clangBasic21 clangFrontend22 )23endif()24