8000 MSVC: Rebuild spiexceptions.h when out of date. · iCalistus/postgres@ab8eae0 · GitHub
[go: up one dir, main page]

Skip to content

Commit ab8eae0

Browse files
committed
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).
1 parent e17b38d commit ab8eae0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tools/msvc/Solution.pm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ sub DeterminePlatform
9090
sub IsNewer
9191
{
9292
my ($newfile, $oldfile) = @_;
93+
-e $oldfile or warn "source file \"$oldfile\" does not exist";
9394
if ( $oldfile ne 'src\tools\msvc\config.pl'
9495
&& $oldfile ne 'src\tools\msvc\config_default.pl')
9596
{
@@ -308,7 +309,7 @@ s{PG_VERSION_STR "[^"]+"}{__STRINGIFY(x) #x\n#define __STRINGIFY2(z) __STRINGIFY
308309
if ($self->{options}->{python}
309310
&& IsNewer(
310311
'src\pl\plpython\spiexceptions.h',
311-
'src\include\backend\errcodes.txt'))
312+
'src\backend\utils\errcodes.txt'))
312313
{
313314
print "Generating spiexceptions.h...\n";
314315
system(

0 commit comments

Comments
 (0)
0