Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 64725d7

Browse files
committed
MSVC: Rebuild spiexceptions.h when out of date.
Also, add a warning to catch future instances of naming a nonexistent file as a prerequisite. Back-patch to 9.3 (all supported versions).
1 parent d6387e2 commit 64725d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tools/msvc/Solution.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ sub DeterminePlatform
8181
sub IsNewer
8282
{
8383
my ($newfile, $oldfile) = @_;
84+
-e $oldfile or warn "source file \"$oldfile\" does not exist";
8485
if ( $oldfile ne 'src/tools/msvc/config.pl'
8586
&& $oldfile ne 'src/tools/msvc/config_default.pl')
8687
{
@@ -327,7 +328,7 @@ s{PG_VERSION_STR "[^"]+"}{PG_VERSION_STR "PostgreSQL $self->{strver}$extraver, c
327328
if ($self->{options}->{python}
328329
&& IsNewer(
329330
'src/pl/plpython/spiexceptions.h',
330-
'src/include/backend/errcodes.txt'))
331+
'src/backend/utils/errcodes.txt'))
331332
{
332333
print "Generating spiexceptions.h...\n";
333334
system(

0 commit comments

Comments
 (0)