r198187 - Don't use PrintFunctionNames.exports on Windows.

Nico Weber nicolasweber at gmx.de
Sun Dec 29 16:05:57 PST 2013


Author: nico
Date: Sun Dec 29 18:05:56 2013
New Revision: 198187

URL: http://llvm.org/viewvc/llvm-project?rev=198187&view=rev
Log:
Don't use PrintFunctionNames.exports on Windows.

Modified:
    cfe/trunk/examples/PrintFunctionNames/CMakeLists.txt

Modified: cfe/trunk/examples/PrintFunctionNames/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/examples/PrintFunctionNames/CMakeLists.txt?rev=198187&r1=198186&r2=198187&view=diff
==============================================================================
--- cfe/trunk/examples/PrintFunctionNames/CMakeLists.txt (original)
+++ cfe/trunk/examples/PrintFunctionNames/CMakeLists.txt Sun Dec 29 18:05:56 2013
@@ -6,9 +6,12 @@ set( LLVM_LINK_COMPONENTS
 
 # If we don't need RTTI or EH, there's no reason to export anything
 # from the plugin.
-if( NOT LLVM_REQUIRES_RTTI )
-  if( NOT LLVM_REQUIRES_EH )
-    set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/PrintFunctionNames.exports)
+if( NOT WIN32 ) # Win32 mangles symbols differently, and
+                # PrintFunctionNames.export contains C++ symbols.
+  if( NOT LLVM_REQUIRES_RTTI )
+    if( NOT LLVM_REQUIRES_EH )
+      set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/PrintFunctionNames.exports)
+    endif()
   endif()
 endif()
 





More information about the cfe-commits mailing list