diff options
Diffstat (limited to 'clang/examples/PrintFunctionNames')
-rw-r--r-- | clang/examples/PrintFunctionNames/CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/examples/PrintFunctionNames/CMakeLists.txt b/clang/examples/PrintFunctionNames/CMakeLists.txt index 492b580c0ea..95f1b6b25a6 100644 --- a/clang/examples/PrintFunctionNames/CMakeLists.txt +++ b/clang/examples/PrintFunctionNames/CMakeLists.txt @@ -4,6 +4,14 @@ set( LLVM_LINK_COMPONENTS Support ) +# If we don't need RTTI or EH, there's no reason to export anything +# from the hello plugin. +if( NOT LLVM_REQUIRES_RTTI ) + if( NOT LLVM_REQUIRES_EH ) + set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/PrintFunctionNames.exports) + endif() +endif() + add_clang_library(PrintFunctionNames PrintFunctionNames.cpp) add_dependencies(PrintFunctionNames |