summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2013-12-29 23:14:26 +0000
committerNico Weber <nicolasweber@gmx.de>2013-12-29 23:14:26 +0000
commit88ea39cbff3d7e0a6a3b8d6911fdcb927c19cbb0 (patch)
tree657a512b6440c1ee3bde09b49bd626c72cdd6597 /examples
parent742455214f184ed40b038df0ef04e8eda1cbe00b (diff)
downloadclang-88ea39cbff3d7e0a6a3b8d6911fdcb927c19cbb0.tar.gz
clang-88ea39cbff3d7e0a6a3b8d6911fdcb927c19cbb0.tar.bz2
clang-88ea39cbff3d7e0a6a3b8d6911fdcb927c19cbb0.tar.xz
[cmake] Set in LLVM_EXPORTED_SYMBOL_FILE PrintFunctionNames/CMakeLists.txt.
The corresponding Makefile sets it too. Also tweak add_clang_library to support LLVM_EXPORTED_SYMBOL_FILE for modules. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198185 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r--examples/PrintFunctionNames/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/PrintFunctionNames/CMakeLists.txt b/examples/PrintFunctionNames/CMakeLists.txt
index 492b580c0e..95f1b6b25a 100644
--- a/examples/PrintFunctionNames/CMakeLists.txt
+++ b/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