File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,9 @@ void tools::MinGW::Linker::AddLibGCC(const ArgList &Args,
8686 CmdArgs.push_back (" -lmoldname" );
8787 CmdArgs.push_back (" -lmingwex" );
8888 for (auto Lib : Args.getAllArgValues (options::OPT_l))
89- if (StringRef (Lib).startswith (" msvcr" ) || StringRef (Lib).startswith (" ucrt" ))
89+ if (StringRef (Lib).startswith (" msvcr" ) ||
90+ StringRef (Lib).startswith (" ucrt" ) ||
91+ StringRef (Lib).startswith (" crtdll" ))
9092 return ;
9193 CmdArgs.push_back (" -lmsvcrt" );
9294}
Original file line number Diff line number Diff line change 22// RUN: %clang -v -target i686-pc-windows-gnu -lmsvcr120 -### %s 2>&1 | FileCheck -check-prefix=CHECK_MSVCR120 %s
33// RUN: %clang -v -target i686-pc-windows-gnu -lucrtbase -### %s 2>&1 | FileCheck -check-prefix=CHECK_UCRTBASE %s
44// RUN: %clang -v -target i686-pc-windows-gnu -lucrt -### %s 2>&1 | FileCheck -check-prefix=CHECK_UCRT %s
5+ // RUN: %clang -v -target i686-pc-windows-gnu -lcrtdll -### %s 2>&1 | FileCheck -check-prefix=CHECK_CRTDLL %s
56
67// CHECK_DEFAULT: "-lmingwex" "-lmsvcrt" "-ladvapi32"
78// CHECK_DEFAULT-SAME: "-lmsvcrt" "-lkernel32" "{{.*}}crtend.o"
1112// CHECK_UCRTBASE-SAME: "-lmingwex" "-ladvapi32"
1213// CHECK_UCRT: "-lucrt"
1314// CHECK_UCRT-SAME: "-lmingwex" "-ladvapi32"
15+ // CHECK_CRTDLL: "-lcrtdll"
16+ // CHECK_CRTDLL-SAME: "-lmingwex" "-ladvapi32"
You can’t perform that action at this time.
0 commit comments