summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Misch2017-11-13 02:43:32 +0000
committerNoah Misch2017-11-13 02:44:38 +0000
commitab8eae0bb5a1345eaa39aceb584623ae41691e5b (patch)
tree936386f04b8b3c77800b2d3502df9295ec7b1add
parente17b38db663949e7b22aa92c2c57dcdf518ecee9 (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.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm
index 06893ee0ebc..353bcf50aa9 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')
{
@@ -308,7 +309,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(