diff options
author | Nico Weber <nicolasweber@gmx.de> | 2013-12-30 00:05:56 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2013-12-30 00:05:56 +0000 |
commit | c45921903ffbfb09ab33e26d3ca2de4a5aba4c7b (patch) | |
tree | bb5c6476031b32bc2ba2956b68be1025f9cb6da5 /clang/examples/PrintFunctionNames | |
parent | e8ef46c851d14b8c985803f31ddc24e4a94e126e (diff) | |
download | bcm5719-llvm-c45921903ffbfb09ab33e26d3ca2de4a5aba4c7b.tar.gz bcm5719-llvm-c45921903ffbfb09ab33e26d3ca2de4a5aba4c7b.zip |
Don't use PrintFunctionNames.exports on Windows.
llvm-svn: 198187
Diffstat (limited to 'clang/examples/PrintFunctionNames')
-rw-r--r-- | clang/examples/PrintFunctionNames/CMakeLists.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/clang/examples/PrintFunctionNames/CMakeLists.txt b/clang/examples/PrintFunctionNames/CMakeLists.txt index 331846286b2..4954d146e27 100644 --- a/clang/examples/PrintFunctionNames/CMakeLists.txt +++ b/clang/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() |