Skip to content

Commit 9edb4f7

Browse files
authored
Define CLANG_ABI and LLVM_ABI for z/OS (#113333)
This patch fixes the build failure seen on z/OS: ``` llvm/clang/include/clang/ASTMatchers/ASTMatchers.h:7212:1: error: unknown type name 'CLANG_ABI' ```
1 parent 9b9c2a0 commit 9edb4f7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

clang/include/clang/Support/Compiler.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949
#define CLANG_TEMPLATE_ABI __declspec(dllimport)
5050
#define CLANG_EXPORT_TEMPLATE
5151
#endif
52-
#elif defined(__ELF__) || defined(__MINGW32__) || defined(_AIX)
52+
#elif defined(__ELF__) || defined(__MINGW32__) || defined(_AIX) || \
53+
defined(__MVS__)
5354
#define CLANG_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
5455
#define CLANG_TEMPLATE_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
5556
#define CLANG_EXPORT_TEMPLATE

llvm/include/llvm/Support/Compiler.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,8 @@
197197
#define LLVM_EXPORT_TEMPLATE
198198
#endif
199199
#define LLVM_ABI_EXPORT __declspec(dllexport)
200-
#elif defined(__ELF__) || defined(__MINGW32__) || defined(_AIX)
200+
#elif defined(__ELF__) || defined(__MINGW32__) || defined(_AIX) || \
201+
defined(__MVS__)
201202
#define LLVM_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
202203
#define LLVM_TEMPLATE_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
203204
#define LLVM_EXPORT_TEMPLATE

0 commit comments

Comments
 (0)