Skip to content

Commit 8694353

Browse files
authored
[LLVM]Fix symbol visibility macros not being define for AIX (#107705)
This is to try and fix buildbot failure on [clang-ppc64-aix](https://lab.llvm.org/buildbot/#/builders/64/builds/881) from my changes in #96630. I don't really know much about AIX so it would be good to have someone more knowledgeable to say if visibility macros on extern templates is needed on AIX similar to ELF. @compnerd @tstellar
1 parent 74ac96a commit 8694353

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Support/Compiler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@
189189
#define LLVM_TEMPLATE_ABI __declspec(dllimport)
190190
#define LLVM_EXPORT_TEMPLATE
191191
#endif
192-
#elif defined(__ELF__) || defined(__MINGW32__)
192+
#elif defined(__ELF__) || defined(__MINGW32__) || defined(_AIX)
193193
#define LLVM_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
194194
#define LLVM_TEMPLATE_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
195195
#define LLVM_EXPORT_TEMPLATE

0 commit comments

Comments
 (0)