Export the required symbol from DynamicLibraryTests
authorRoger Ferrer Ibanez <roger.ferreribanez@arm.com>
Fri, 26 May 2017 12:51:12 +0000 (12:51 +0000)
committerRoger Ferrer Ibanez <roger.ferreribanez@arm.com>
Fri, 26 May 2017 12:51:12 +0000 (12:51 +0000)
commit2785dd63304233c54e49b88896f9c07914393ac7
treeef480a0c2aa7f4fd3e206c799febc2db5333fe09
parent732f268aa08644854c3ce9418b31ee706f1d372a
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
llvm/unittests/Support/DynamicLibrary/CMakeLists.txt
llvm/unittests/Support/DynamicLibrary/DynamicLibraryTests.exports [new file with mode: 0644]