[lld] [LLD][Cygwin] Add libcygwin to exclude from auto-export library list (PR #143118)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 6 04:45:56 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lld

Author: Tomohiro Kashiwada (kikairoya)

<details>
<summary>Changes</summary>

Linking for Cygwin target always needs -lcygwin but should not auto-exported from it, same as -lmingw for MinGW target.

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


1 Files Affected:

- (modified) lld/COFF/MinGW.cpp (+1) 


``````````diff
diff --git a/lld/COFF/MinGW.cpp b/lld/COFF/MinGW.cpp
index ca9ae403f181b..4f31ad36f025d 100644
--- a/lld/COFF/MinGW.cpp
+++ b/lld/COFF/MinGW.cpp
@@ -46,6 +46,7 @@ AutoExporter::AutoExporter(
       "libclang_rt.profile-arm",
       "libclang_rt.profile-i386",
       "libclang_rt.profile-x86_64",
+      "libcygwin",
       "libc++",
       "libc++abi",
       "libflang_rt.runtime",

``````````

</details>


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


More information about the llvm-commits mailing list