Skip to content

Commit cb1b92e

Browse files
dschoGit for Windows Build Agent
authored and
Git for Windows Build Agent
committed
Merge pull request #2501 from jeffhostetler/clink-debug-curl
clink.pl: fix MSVC compile script to handle libcurl-d.lib
2 parents e3712b0 + 0bdca5d commit cb1b92e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compat/vcbuild/scripts/clink.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@
5656
# need to use that instead?
5757
foreach my $flag (@lflags) {
5858
if ($flag =~ /^-LIBPATH:(.*)/) {
59-
foreach my $l ("libcurl_imp.lib", "libcurl.lib") {
59+
my $libcurl = $is_debug ? "libcurl-d.lib" : "libcurl.lib";
60+
foreach my $l ("libcurl_imp.lib", $libcurl) {
6061
if (-f "$1/$l") {
6162
$lib = $l;
6263
last;

0 commit comments

Comments
 (0)