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:44:51 -0800 |
commit | ca853a244559b339b3a9da321844b852367e8140 (patch) | |
tree | 00026df097f88694e3b07af2a3aafa964950f579 | |
parent | 1c065901e3408c3db43593e55aa32da32302dd87 (diff) |
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).
-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 c5e78ec754a..bceddfcb962 100644 --- a/src/tools/msvc/Solution.pm +++ b/src/tools/msvc/Solution.pm @@ -90,6 +90,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') { @@ -311,7 +312,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( |