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:32 -0800 |
commit | 9363b8b79b0f2475b5b607fe4e0aa73a86398223 (patch) | |
tree | 53ad56bc6d6c55ac323956175a0de42bd3c0badc /src | |
parent | cbfffee41c3f571fa3fcb26fca5eb11bc508f972 (diff) | |
download | postgresql-9363b8b79b0f2475b5b607fe4e0aa73a86398223.tar.gz postgresql-9363b8b79b0f2475b5b607fe4e0aa73a86398223.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 947d9042446..6dcdd29f576 100644 --- a/src/tools/msvc/Solution.pm +++ b/src/tools/msvc/Solution.pm @@ -81,6 +81,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') { @@ -325,7 +326,7 @@ s{PG_VERSION_STR "[^"]+"}{PG_VERSION_STR "PostgreSQL $self->{strver}$extraver, c 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( |