[PATCH] D127416: [SystemZ/z/OS] Fix failing dynamic library unit test.
Kai Nacke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 9 09:38:46 PDT 2022
Kai created this revision.
Kai added reviewers: abhina.sreeskantharajan, fanbo-meng, yusra.syeda, Everybody0523, uweigand.
Herald added a project: All.
Kai requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Root cause for the failure is that the visibility of symbols
is different on z/OS. To fix the failure, the symbols need to
be exported.
https://reviews.llvm.org/D127416
Files:
llvm/unittests/Support/DynamicLibrary/PipSqueak.h
Index: llvm/unittests/Support/DynamicLibrary/PipSqueak.h
===================================================================
--- llvm/unittests/Support/DynamicLibrary/PipSqueak.h
+++ llvm/unittests/Support/DynamicLibrary/PipSqueak.h
@@ -24,6 +24,8 @@
#ifdef _WIN32
#define PIPSQUEAK_EXPORT __declspec(dllexport)
+#elif defined(__MVS__)
+#define PIPSQUEAK_EXPORT __attribute__((__visibility__("default")))
#else
#define PIPSQUEAK_EXPORT
#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127416.435595.patch
Type: text/x-patch
Size: 450 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220609/0fa1e6f1/attachment.bin>
More information about the llvm-commits
mailing list