summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2013-12-30 00:05:56 +0000
committerNico Weber <nicolasweber@gmx.de>2013-12-30 00:05:56 +0000
commit4eabbac65ae4437c501ab29bb36ae5215e3689c8 (patch)
treee0b10fb24a3881adf7c8f8dff90bf7230897a6ff /examples
parent708d1c6a02577b60ca19d1b875e52cd3a8f44c3c (diff)
downloadclang-4eabbac65ae4437c501ab29bb36ae5215e3689c8.tar.gz
clang-4eabbac65ae4437c501ab29bb36ae5215e3689c8.tar.bz2
clang-4eabbac65ae4437c501ab29bb36ae5215e3689c8.tar.xz
Don't use PrintFunctionNames.exports on Windows.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198187 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r--examples/PrintFunctionNames/CMakeLists.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/examples/PrintFunctionNames/CMakeLists.txt b/examples/PrintFunctionNames/CMakeLists.txt
index 331846286b..4954d146e2 100644
--- a/examples/PrintFunctionNames/CMakeLists.txt
+++ b/examples/PrintFunctionNames/CMakeLists.txt
@@ -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()