]> granicus.if.org Git - postgresql/commitdiff
Improve error message on MSVC if perl*.lib is not found.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 23 Sep 2016 11:21:59 +0000 (14:21 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 23 Sep 2016 11:21:59 +0000 (14:21 +0300)
John Harvey, reviewed by Michael Paquier

Discussion: <CABcP5fjEjgOsh097cWnQrsK9yCswo4DZxp-V47DKCH-MxY9Gig@mail.gmail.com>

src/tools/msvc/Mkvcbuild.pm

index 93dfd24a83b8e746d836044fbfffdfcccf0b132e..07c91d1849e6810bf355003c48f65da1978b6fb7 100644 (file)
@@ -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