mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-04 22:06:50 +02:00
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).
This commit is contained in:
parent
8c92e66f1a
commit
ad083e4ede
@ -87,6 +87,7 @@ sub DeterminePlatform
|
||||
sub IsNewer
|
||||
{
|
||||
my ($newfile, $oldfile) = @_;
|
||||
-e $oldfile or warn "source file \"$oldfile\" does not exist";
|
||||
if ( $oldfile ne 'src/tools/msvc/config.pl'
|
||||
&& $oldfile ne 'src/tools/msvc/config_default.pl')
|
||||
{
|
||||
@ -321,7 +322,7 @@ s{PG_VERSION_STR "[^"]+"}{__STRINGIFY(x) #x\n#define __STRINGIFY2(z) __STRINGIFY
|
||||
if ($self->{options}->{python}
|
||||
&& IsNewer(
|
||||
'src/pl/plpython/spiexceptions.h',
|
||||
'src/include/backend/errcodes.txt'))
|
||||
'src/backend/utils/errcodes.txt'))
|
||||
{
|
||||
print "Generating spiexceptions.h...\n";
|
||||
system(
|
||||
|
Loading…
Reference in New Issue
Block a user