summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Support
diff options
context:
space:
mode:
authorRoger Ferrer Ibanez <roger.ferreribanez@arm.com>2017-05-26 12:51:12 +0000
committerRoger Ferrer Ibanez <roger.ferreribanez@arm.com>2017-05-26 12:51:12 +0000
commit2785dd63304233c54e49b88896f9c07914393ac7 (patch)
treeef480a0c2aa7f4fd3e206c799febc2db5333fe09 /llvm/unittests/Support
parent732f268aa08644854c3ce9418b31ee706f1d372a (diff)
downloadbcm5719-llvm-2785dd63304233c54e49b88896f9c07914393ac7.tar.gz
bcm5719-llvm-2785dd63304233c54e49b88896f9c07914393ac7.zip
Export the required symbol from DynamicLibraryTests
Running unittests/Support/DynamicLibrary/DynamicLibraryTests fails when LLVM is configured with LLVM_EXPORT_SYMBOLS_FOR_PLUGINS=ON, because the test's version script only contains symbols extracted from the static libraries, that the test links with, but not those from the main object/executable itself. The patch explicitly exports the one symbol needed by the test. This change fixes https://bugs.llvm.org/show_bug.cgi?id=32893 Patch authored by Momchil Velikov. Differential Revision: https://reviews.llvm.org/D33490 llvm-svn: 303979
Diffstat (limited to 'llvm/unittests/Support')
-rw-r--r--llvm/unittests/Support/DynamicLibrary/CMakeLists.txt1
-rw-r--r--llvm/unittests/Support/DynamicLibrary/DynamicLibraryTests.exports1
2 files changed, 2 insertions, 0 deletions
diff --git a/llvm/unittests/Support/DynamicLibrary/CMakeLists.txt b/llvm/unittests/Support/DynamicLibrary/CMakeLists.txt
index f0e945e78b1..8c4a1d388e3 100644
--- a/llvm/unittests/Support/DynamicLibrary/CMakeLists.txt
+++ b/llvm/unittests/Support/DynamicLibrary/CMakeLists.txt
@@ -1,5 +1,6 @@
set(LLVM_LINK_COMPONENTS Support)
+set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/DynamicLibraryTests.exports)
add_llvm_unittest(DynamicLibraryTests DynamicLibraryTest.cpp)
export_executable_symbols(DynamicLibraryTests)
diff --git a/llvm/unittests/Support/DynamicLibrary/DynamicLibraryTests.exports b/llvm/unittests/Support/DynamicLibrary/DynamicLibraryTests.exports
new file mode 100644
index 00000000000..a9122211071
--- /dev/null
+++ b/llvm/unittests/Support/DynamicLibrary/DynamicLibraryTests.exports
@@ -0,0 +1 @@
+TestA
OpenPOWER on IntegriCloud