1*0a6a1f1dSLionel Sambuc# If we don't need RTTI or EH, there's no reason to export anything 2*0a6a1f1dSLionel Sambuc# from the plugin. 3*0a6a1f1dSLionel Sambucif( NOT MSVC ) # MSVC mangles symbols differently, and 4*0a6a1f1dSLionel Sambuc # PrintFunctionNames.export contains C++ symbols. 5*0a6a1f1dSLionel Sambuc if( NOT LLVM_REQUIRES_RTTI ) 6*0a6a1f1dSLionel Sambuc if( NOT LLVM_REQUIRES_EH ) 7*0a6a1f1dSLionel Sambuc set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/PrintFunctionNames.exports) 8*0a6a1f1dSLionel Sambuc endif() 9*0a6a1f1dSLionel Sambuc endif() 10*0a6a1f1dSLionel Sambucendif() 11f4a2713aSLionel Sambuc 12*0a6a1f1dSLionel Sambucadd_llvm_loadable_module(PrintFunctionNames PrintFunctionNames.cpp) 13f4a2713aSLionel Sambuc 14*0a6a1f1dSLionel Sambucif(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN)) 15*0a6a1f1dSLionel Sambuc target_link_libraries(PrintFunctionNames ${cmake_2_8_12_PRIVATE} 16f4a2713aSLionel Sambuc clangAST 17*0a6a1f1dSLionel Sambuc clangBasic 18*0a6a1f1dSLionel Sambuc clangFrontend 19*0a6a1f1dSLionel Sambuc LLVMSupport 20f4a2713aSLionel Sambuc ) 21*0a6a1f1dSLionel Sambucendif() 22