[llvm] [Cygwin] Define LLVM_ABI for Cygwin (PR #143222)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 6 18:26:56 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-support

Author: Tomohiro Kashiwada (kikairoya)

<details>
<summary>Changes</summary>

592243c1cb3ea53b34033132a87b0d14af9d1079 should be also applied to LLVM_ABI.

---
Full diff: https://github.com/llvm/llvm-project/pull/143222.diff


1 Files Affected:

- (modified) llvm/include/llvm/Support/Compiler.h (+1-1) 


``````````diff
diff --git a/llvm/include/llvm/Support/Compiler.h b/llvm/include/llvm/Support/Compiler.h
index b4382057654ba..904ab88a5a51f 100644
--- a/llvm/include/llvm/Support/Compiler.h
+++ b/llvm/include/llvm/Support/Compiler.h
@@ -209,7 +209,7 @@
 #define LLVM_ABI_FRIEND LLVM_ABI
 #define LLVM_ABI_EXPORT __declspec(dllexport)
 #elif defined(__ELF__) || defined(__MINGW32__) || defined(_AIX) ||             \
-    defined(__MVS__)
+    defined(__MVS__) || defined(__CYGWIN__)
 #define LLVM_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
 #define LLVM_ABI_FRIEND
 #define LLVM_TEMPLATE_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT

``````````

</details>


https://github.com/llvm/llvm-project/pull/143222


More information about the llvm-commits mailing list