Skip to content

Commit 9d2c86a

Browse files
committed
[LLD][Cygwin] Add libcygwin and libmsys-2.0 to exclude-from-auto-export library list
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.
1 parent ac4893d commit 9d2c86a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lld/COFF/MinGW.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ AutoExporter::AutoExporter(
4646
"libclang_rt.profile-arm",
4747
"libclang_rt.profile-i386",
4848
"libclang_rt.profile-x86_64",
49+
"libcygwin",
50+
"libmsys-2.0",
4951
"libc++",
5052
"libc++abi",
5153
"libflang_rt.runtime",

0 commit comments

Comments
 (0)