https://github.com/muiez created https://github.com/llvm/llvm-project/pull/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' ``` >From dca5899894f81e70ba3a5c990936ac3316256fc9 Mon Sep 17 00:00:00 2001 From: Muiez <mu...@ibm.com> Date: Tue, 22 Oct 2024 11:23:55 -0400 Subject: [PATCH] [z/OS] Define CLANG_ABI --- clang/include/clang/Support/Compiler.h | 2 +- llvm/include/llvm/Support/Compiler.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/include/clang/Support/Compiler.h b/clang/include/clang/Support/Compiler.h index c35815e106d2e2..aeaa0b61188313 100644 --- a/clang/include/clang/Support/Compiler.h +++ b/clang/include/clang/Support/Compiler.h @@ -49,7 +49,7 @@ #define CLANG_TEMPLATE_ABI __declspec(dllimport) #define CLANG_EXPORT_TEMPLATE #endif -#elif defined(__ELF__) || defined(__MINGW32__) || defined(_AIX) +#elif defined(__ELF__) || defined(__MINGW32__) || defined(_AIX) || defined(__MVS__) #define CLANG_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT #define CLANG_TEMPLATE_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT #define CLANG_EXPORT_TEMPLATE diff --git a/llvm/include/llvm/Support/Compiler.h b/llvm/include/llvm/Support/Compiler.h index ab0cbff43d749c..c09bcca9e2ba4b 100644 --- a/llvm/include/llvm/Support/Compiler.h +++ b/llvm/include/llvm/Support/Compiler.h @@ -197,7 +197,7 @@ #define LLVM_EXPORT_TEMPLATE #endif #define LLVM_ABI_EXPORT __declspec(dllexport) -#elif defined(__ELF__) || defined(__MINGW32__) || defined(_AIX) +#elif defined(__ELF__) || defined(__MINGW32__) || defined(_AIX) || defined(__MVS__) #define LLVM_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT #define LLVM_TEMPLATE_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT #define LLVM_EXPORT_TEMPLATE _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits