[llvm] r198183 - Set LLVM_EXPORTED_SYMBOL_FILE in CMakeLists whose corresponding Makefiles do so.

Nico Weber nicolasweber at gmx.de
Sun Dec 29 15:06:49 PST 2013


Author: nico
Date: Sun Dec 29 17:06:49 2013
New Revision: 198183

URL: http://llvm.org/viewvc/llvm-project?rev=198183&view=rev
Log:
Set LLVM_EXPORTED_SYMBOL_FILE in CMakeLists whose corresponding Makefiles do so.

(unittests/ExecutionEngine/JIT/CMakeLists.txt is still missing for now, since
it handles export files in a strange way: It generates a .exports file from a
.def file instead of the other way round.)

Modified:
    llvm/trunk/lib/Transforms/Hello/CMakeLists.txt
    llvm/trunk/tools/bugpoint-passes/CMakeLists.txt

Modified: llvm/trunk/lib/Transforms/Hello/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Hello/CMakeLists.txt?rev=198183&r1=198182&r2=198183&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Hello/CMakeLists.txt (original)
+++ llvm/trunk/lib/Transforms/Hello/CMakeLists.txt Sun Dec 29 17:06:49 2013
@@ -1,3 +1,11 @@
+# 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}/Hello.exports)
+  endif()
+endif()
+
 add_llvm_loadable_module( LLVMHello
   Hello.cpp
   )

Modified: llvm/trunk/tools/bugpoint-passes/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/bugpoint-passes/CMakeLists.txt?rev=198183&r1=198182&r2=198183&view=diff
==============================================================================
--- llvm/trunk/tools/bugpoint-passes/CMakeLists.txt (original)
+++ llvm/trunk/tools/bugpoint-passes/CMakeLists.txt Sun Dec 29 17:06:49 2013
@@ -2,6 +2,14 @@ if( NOT LLVM_BUILD_TOOLS )
   set(EXCLUDE_FROM_ALL ON)
 endif()
 
+# If we don't need RTTI or EH, there's no reason to export anything
+# from this plugin.
+if( NOT LLVM_REQUIRES_RTTI )
+  if( NOT LLVM_REQUIRES_EH )
+    set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/bugpoint.exports)
+  endif()
+endif()
+
 add_llvm_loadable_module( BugpointPasses
   TestPasses.cpp
   )





More information about the llvm-commits mailing list