Changeset View
Changeset View
Standalone View
Standalone View
clang/examples/PrintFunctionNames/CMakeLists.txt
# If we don't need RTTI or EH, there's no reason to export anything | # If we don't need RTTI or EH, there's no reason to export anything | ||||
# from the plugin. | # from the plugin. | ||||
if( NOT MSVC ) # MSVC mangles symbols differently, and | if( NOT MSVC ) # MSVC mangles symbols differently, and | ||||
# PrintFunctionNames.export contains C++ symbols. | # PrintFunctionNames.export contains C++ symbols. | ||||
if( NOT LLVM_REQUIRES_RTTI ) | if( NOT LLVM_REQUIRES_RTTI ) | ||||
if( NOT LLVM_REQUIRES_EH ) | if( NOT LLVM_REQUIRES_EH ) | ||||
set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/PrintFunctionNames.exports) | set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/PrintFunctionNames.exports) | ||||
endif() | endif() | ||||
endif() | endif() | ||||
endif() | endif() | ||||
add_llvm_library(PrintFunctionNames MODULE PrintFunctionNames.cpp PLUGIN_TOOL clang) | add_llvm_library(PrintFunctionNames MODULE PrintFunctionNames.cpp PLUGIN_TOOL clang) | ||||
if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN)) | if(CLANG_PLUGIN_SUPPORT AND (WIN32 OR CYGWIN)) | ||||
set(LLVM_LINK_COMPONENTS | set(LLVM_LINK_COMPONENTS | ||||
Support | Support | ||||
) | ) | ||||
clang_target_link_libraries(PrintFunctionNames PRIVATE | clang_target_link_libraries(PrintFunctionNames PRIVATE | ||||
clangAST | clangAST | ||||
clangBasic | clangBasic | ||||
clangFrontend | clangFrontend | ||||
) | ) | ||||
endif() | endif() |