Skip to content

Commit 66eda1c

Browse files
author
Neil Conway
committed
VC build patch from Magnus:
Typo in the changes to plperl - uses wrong dir, and had a missing slash. Also fixes error checking for xsubpp - it was broken in a way that hid the problem above when run more than once (which is the normal case when developing).
1 parent ae81a63 commit 66eda1c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/tools/msvc/mkvcbuild.pl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,11 @@
5252
$plperl->AddDefine('PLPERL_HAVE_UID_GID');
5353
if (Solution::IsNewer('src\pl\plperl\SPI.c','src\pl\plperl\SPI.xs')) {
5454
print 'Building src\pl\plperl\SPI.c...' . "\n";
55-
system($solution->{options}->{perl} . '/bin/perl ' . $solution->{options}->{perl} . '/lib/COREExtUtils/xsubpp -typemap ' . $solution->{options}->{perl} . '/lib/CORE/ExtUtils/typemap src\pl\plperl\SPI.xs >src\pl\plperl\SPI.c');
56-
die 'Failed to create SPI.c' . "\n" if ((!(-f 'src\pl\plperl\SPI.c')) || -z 'src\pl\plperl\SPI.c');
55+
system($solution->{options}->{perl} . '/bin/perl ' . $solution->{options}->{perl} . '/lib/ExtUtils/xsubpp -typemap ' . $solution->{options}->{perl} . '/lib/ExtUtils/typemap src\pl\plperl\SPI.xs >src\pl\plperl\SPI.c');
56+
if ((!(-f 'src\pl\plperl\SPI.c')) || -z 'src\pl\plperl\SPI.c') {
57+
unlink('src\pl\plperl\SPI.c'); # if zero size
58+
die 'Failed to create SPI.c' . "\n";
59+
}
5760
}
5861
$plperl->AddReference($postgres);
5962
$plperl->AddLibrary($solution->{options}->{perl} . '\lib\CORE\perl58.lib');

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy