Skip to content

Commit 8db4703

Browse files
kikairoyajeremyd2019
authored andcommitted
[LLD][Cygwin] Add libcygwin and libmsys-2.0 to exclude-from-auto-export library list (llvm#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.
1 parent e48cba0 commit 8db4703

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
@@ -48,6 +48,8 @@ AutoExporter::AutoExporter(
4848
"libclang_rt.profile-arm",
4949
"libclang_rt.profile-i386",
5050
"libclang_rt.profile-x86_64",
51+
"libcygwin",
52+
"libmsys-2.0",
5153
"libc++",
5254
"libc++abi",
5355
"libFortranRuntime",

0 commit comments

Comments
 (0)