]> granicus.if.org Git - clang/commitdiff
Don't use PrintFunctionNames.exports on Windows.
authorNico Weber <nicolasweber@gmx.de>
Mon, 30 Dec 2013 00:05:56 +0000 (00:05 +0000)
committerNico Weber <nicolasweber@gmx.de>
Mon, 30 Dec 2013 00:05:56 +0000 (00:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198187 91177308-0d34-0410-b5e6-96231b3b80d8

examples/PrintFunctionNames/CMakeLists.txt

index 331846286b2be7e42778b9b61eb68788c70b1e6a..4954d146e27a81fc9677c7dca9621613616022c4 100644 (file)
@@ -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()