Commit 3c2d5d66 authored by Heikki Linnakangas's avatar Heikki Linnakangas

Improve error message on MSVC if perl*.lib is not found.

John Harvey, reviewed by Michael Paquier

Discussion: <CABcP5fjEjgOsh097cWnQrsK9yCswo4DZxp-V47DKCH-MxY9Gig@mail.gmail.com>
parent 674e2de6
...@@ -557,16 +557,17 @@ sub mkvcbuild ...@@ -557,16 +557,17 @@ sub mkvcbuild
} }
} }
$plperl->AddReference($postgres); $plperl->AddReference($postgres);
my $perl_path = $solution->{options}->{perl} . '\lib\CORE\perl*.lib';
my @perl_libs = my @perl_libs =
grep { /perl\d+.lib$/ } grep { /perl\d+.lib$/ }
glob($solution->{options}->{perl} . '\lib\CORE\perl*.lib'); glob($perl_path);
if (@perl_libs == 1) if (@perl_libs == 1)
{ {
$plperl->AddLibrary($perl_libs[0]); $plperl->AddLibrary($perl_libs[0]);
} }
else else
{ {
die "could not identify perl library version"; die "could not identify perl library version matching pattern $perl_path\n";
} }
# Add transform module dependent on plperl # Add transform module dependent on plperl
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment