summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2017-11-12 18:43:32 -0800
committerNoah Misch <noah@leadboat.com>2017-11-12 18:43:45 -0800
commit64725d7f98a00a292fd2ed9fffb6ae254a5f095d (patch)
tree8a559c3a1ffb78bb31265c7eaaed7f76d6c73cf1 /src
parentd6387e27e952a687fd2d89874d928a5d27d1fb55 (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).
Diffstat (limited to 'src')
-rw-r--r--src/tools/msvc/Solution.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm
index 8b4f0efb1cf..696da2be920 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')
{
@@ -327,7 +328,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(