diff options
author | Noah Misch <noah@leadboat.com> | 2017-11-12 18:43:32 -0800 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2017-11-12 18:43:45 -0800 |
commit | ad083e4ede522548045989995b36f3fe2d16a984 (patch) | |
tree | 065ddea5b20db5140decc87e863b1c8723e32df8 /src | |
parent | 8c92e66f1a168fdb0862b8d96db4fe0353effc9d (diff) | |
download | postgresql-ad083e4ede522548045989995b36f3fe2d16a984.tar.gz postgresql-ad083e4ede522548045989995b36f3fe2d16a984.zip |
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).
Diffstat (limited to 'src')
-rw-r--r-- | src/tools/msvc/Solution.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm index a8fdc315303..7ae6d371e9c 100644 --- a/src/tools/msvc/Solution.pm +++ b/src/tools/msvc/Solution.pm @@ -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( |