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,
86
86
CmdArgs.push_back (" -lmoldname" );
87
87
CmdArgs.push_back (" -lmingwex" );
88
88
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" ))
90
92
return ;
91
93
CmdArgs.push_back (" -lmsvcrt" );
92
94
}
Original file line number Diff line number Diff line change 2
2
// RUN: %clang -v -target i686-pc-windows-gnu -lmsvcr120 -### %s 2>&1 | FileCheck -check-prefix=CHECK_MSVCR120 %s
3
3
// RUN: %clang -v -target i686-pc-windows-gnu -lucrtbase -### %s 2>&1 | FileCheck -check-prefix=CHECK_UCRTBASE %s
4
4
// 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
5
6
6
7
// CHECK_DEFAULT: "-lmingwex" "-lmsvcrt" "-ladvapi32"
7
8
// CHECK_DEFAULT-SAME: "-lmsvcrt" "-lkernel32" "{{.*}}crtend.o"
11
12
// CHECK_UCRTBASE-SAME: "-lmingwex" "-ladvapi32"
12
13
// CHECK_UCRT: "-lucrt"
13
14
// 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