Skip to content

Commit 340b392

Browse files
committed
fixes for MSVC 2013 build of libicu and perl 5.22
1 parent df4c38f commit 340b392

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/tools/msvc/Mkvcbuild.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,8 +577,8 @@ sub mkvcbuild
577577
}
578578
$plperl->AddReference($postgres);
579579
my @perl_libs =
580-
grep { /perl\d+.lib$/ }
581-
glob($solution->{options}->{perl} . '\lib\CORE\perl*.lib');
580+
grep { /perl\d+\.(lib|a)$/ }
581+
glob($solution->{options}->{perl} . '\lib\CORE\*.*');
582582
if (@perl_libs == 1)
583583
{
584584
$plperl->AddLibrary($perl_libs[0]);

src/tools/msvc/Solution.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ sub AddProject
535535
if ($self->{options}->{icu})
536536
{
537537
my $libdir = $self->{options}->{icu}.'\lib';
538-
$libdir .= '\lib64' if $self->{platform} eq 'x64';
538+
$libdir .= '\lib64' if $self->{platform} eq 'x64' and -d $libdir.'\lib64';
539539
$proj->AddIncludeDir($self->{options}->{icu} . '\include');
540540
$proj->AddLibrary($libdir.'\icuin.lib');
541541
$proj->AddLibrary($libdir.'\icuuc.lib');

0 commit comments

Comments
 (0)