diff options
author | Nico Weber <nicolasweber@gmx.de> | 2013-12-29 23:14:26 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2013-12-29 23:14:26 +0000 |
commit | 216436c77a9e214276f94c6ec613db4f39b65817 (patch) | |
tree | e7e8026399e568e208b381cd7bb9e6d0ea8c9419 /clang/examples/PrintFunctionNames | |
parent | 8ea758254637812c327dbf27155abf3924fd0dd7 (diff) | |
download | bcm5719-llvm-216436c77a9e214276f94c6ec613db4f39b65817.tar.gz bcm5719-llvm-216436c77a9e214276f94c6ec613db4f39b65817.zip |
[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.
llvm-svn: 198185
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 |