[lld] 89aef7e - [LLD][Cygwin] Add libcygwin and libmsys-2.0 to exclude-from-auto-export library list (#143118)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 8 10:06:07 PDT 2025
Author: Tomohiro Kashiwada
Date: 2025-06-08T20:06:03+03:00
New Revision: 89aef7e0608d927eb7613834d817b723feef4f83
URL: https://github.com/llvm/llvm-project/commit/89aef7e0608d927eb7613834d817b723feef4f83
DIFF: https://github.com/llvm/llvm-project/commit/89aef7e0608d927eb7613834d817b723feef4f83.diff
LOG: [LLD][Cygwin] Add libcygwin and libmsys-2.0 to exclude-from-auto-export library list (#143118)
Linking for Cygwin target always needs -lcygwin (and, -lmsys-2.0
instead for MSYS2 target) but should not auto-export from
them, same as -lmingw32 for MinGW target.
Added:
Modified:
lld/COFF/MinGW.cpp
Removed:
################################################################################
diff --git a/lld/COFF/MinGW.cpp b/lld/COFF/MinGW.cpp
index ca9ae403f181b..e7117cbea2e88 100644
--- a/lld/COFF/MinGW.cpp
+++ b/lld/COFF/MinGW.cpp
@@ -46,6 +46,8 @@ AutoExporter::AutoExporter(
"libclang_rt.profile-arm",
"libclang_rt.profile-i386",
"libclang_rt.profile-x86_64",
+ "libcygwin",
+ "libmsys-2.0",
"libc++",
"libc++abi",
"libflang_rt.runtime",
More information about the llvm-commits
mailing list