diff options
author | Roger Ferrer Ibanez <roger.ferreribanez@arm.com> | 2017-06-12 07:22:15 +0000 |
---|---|---|
committer | Roger Ferrer Ibanez <roger.ferreribanez@arm.com> | 2017-06-12 07:22:15 +0000 |
commit | 2cd536c7055dab5aaaf2f96016705c11ae5e6eec (patch) | |
tree | 37840d757d314f108b8949148e168b697b9af560 /llvm/unittests/Support/DynamicLibrary/PipSqueak.h | |
parent | 69fead95c725b7e884ab852146ae34d0747c2477 (diff) | |
download | bcm5719-llvm-2cd536c7055dab5aaaf2f96016705c11ae5e6eec.tar.gz bcm5719-llvm-2cd536c7055dab5aaaf2f96016705c11ae5e6eec.zip |
Export the required symbol from DynamicLibraryTests
Running unittests/Support/DynamicLibrary/DynamicLibraryTests fails
when LLVM is configured with -DLLVM_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 moves the one symbol, needed by the test, to a static library.
Fixes https://bugs.llvm.org/show_bug.cgi?id=32893
Patch by Momchil Velikov.
Differential Revision: https://reviews.llvm.org/D33789
llvm-svn: 305181
Diffstat (limited to 'llvm/unittests/Support/DynamicLibrary/PipSqueak.h')
-rw-r--r-- | llvm/unittests/Support/DynamicLibrary/PipSqueak.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/unittests/Support/DynamicLibrary/PipSqueak.h b/llvm/unittests/Support/DynamicLibrary/PipSqueak.h index 3e4f79a9a6f..b44c61d64df 100644 --- a/llvm/unittests/Support/DynamicLibrary/PipSqueak.h +++ b/llvm/unittests/Support/DynamicLibrary/PipSqueak.h @@ -29,4 +29,6 @@ #define PIPSQUEAK_EXPORT #endif +extern "C" PIPSQUEAK_EXPORT const char *TestA(); + #endif |