Nico Weber | 216436c | 2013-12-29 23:14:26 +0000 | [diff] [blame] | 1 | # If we don't need RTTI or EH, there's no reason to export anything |
Nico Weber | e8ef46c | 2013-12-29 23:15:01 +0000 | [diff] [blame] | 2 | # from the plugin. |
NAKAMURA Takumi | 6672b8e | 2014-07-13 13:38:55 +0000 | [diff] [blame] | 3 | if( NOT MSVC ) # MSVC mangles symbols differently, and |
Nico Weber | c459219 | 2013-12-30 00:05:56 +0000 | [diff] [blame] | 4 | # 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 Weber | 216436c | 2013-12-29 23:14:26 +0000 | [diff] [blame] | 9 | endif() |
| 10 | endif() |
| 11 | |
Jordan Rose | 68db107 | 2014-02-12 21:04:23 +0000 | [diff] [blame] | 12 | add_llvm_loadable_module(PrintFunctionNames PrintFunctionNames.cpp) |
NAKAMURA Takumi | 9b9de47 | 2014-07-13 13:40:23 +0000 | [diff] [blame] | 13 | |
| 14 | if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN)) |
Chris Bieneman | 28cdb67 | 2016-06-09 21:29:55 +0000 | [diff] [blame^] | 15 | target_link_libraries(PrintFunctionNames PRIVATE |
NAKAMURA Takumi | 9b9de47 | 2014-07-13 13:40:23 +0000 | [diff] [blame] | 16 | clangAST |
| 17 | clangBasic |
| 18 | clangFrontend |
| 19 | LLVMSupport |
| 20 | ) |
| 21 | endif() |