Improve error message on MSVC if perl*.lib is not found.
John Harvey, reviewed by Michael Paquier Discussion: <CABcP5fjEjgOsh097cWnQrsK9yCswo4DZxp-V47DKCH-MxY9Gig@mail.gmail.com>
This commit is contained in:
parent
674e2de64d
commit
3c2d5d6600
|
@ -557,16 +557,17 @@ sub mkvcbuild
|
|||
}
|
||||
}
|
||||
$plperl->AddReference($postgres);
|
||||
my $perl_path = $solution->{options}->{perl} . '\lib\CORE\perl*.lib';
|
||||
my @perl_libs =
|
||||
grep { /perl\d+.lib$/ }
|
||||
glob($solution->{options}->{perl} . '\lib\CORE\perl*.lib');
|
||||
glob($perl_path);
|
||||
if (@perl_libs == 1)
|
||||
{
|
||||
$plperl->AddLibrary($perl_libs[0]);
|
||||
}
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue