blob: 5a00d5036fb1631be836365652f40851eece869c [file] [log] [blame]
Nico Weber216436c2013-12-29 23:14:26 +00001# If we don't need RTTI or EH, there's no reason to export anything
Nico Webere8ef46c2013-12-29 23:15:01 +00002# from the plugin.
NAKAMURA Takumi6672b8e2014-07-13 13:38:55 +00003if( NOT MSVC ) # MSVC mangles symbols differently, and
Nico Weberc4592192013-12-30 00:05:56 +00004 # PrintFunctionNames.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}/PrintFunctionNames.exports)
8 endif()
Nico Weber216436c2013-12-29 23:14:26 +00009 endif()
10endif()
11
Jordan Rose68db1072014-02-12 21:04:23 +000012add_llvm_loadable_module(PrintFunctionNames PrintFunctionNames.cpp)
NAKAMURA Takumi9b9de472014-07-13 13:40:23 +000013
14if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN))
Chris Bieneman28cdb672016-06-09 21:29:55 +000015 target_link_libraries(PrintFunctionNames PRIVATE
NAKAMURA Takumi9b9de472014-07-13 13:40:23 +000016 clangAST
17 clangBasic
18 clangFrontend
19 LLVMSupport
20 )
21endif()