mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-01 09:01:17 +02:00
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);
|
$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
|
||||||
|
Loading…
Reference in New Issue
Block a user