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

Skip to content

Commit def9ef5

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 b2df91f commit def9ef5

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
@@ -87,6 +87,7 @@ sub DeterminePlatform
8787
sub IsNewer
8888
{
8989
my ($newfile, $oldfile) = @_;
90+
-e $oldfile or warn "source file \"$oldfile\" does not exist";
9091
if ( $oldfile ne 'src/tools/msvc/config.pl'
9192
&& $oldfile ne 'src/tools/msvc/config_default.pl')
9293
{
@@ -304,7 +305,7 @@ s{PG_VERSION_STR "[^"]+"}{__STRINGIFY(x) #x\n#define __STRINGIFY2(z) __STRINGIFY
304305
if ($self->{options}->{python}
305306
&& IsNewer(
306307
'src/pl/plpython/spiexceptions.h',
307-
'src/include/backend/errcodes.txt'))
308+
'src/backend/utils/errcodes.txt'))
308309
{
309310
print "Generating spiexceptions.h...\n";
310311
system(

0 commit comments

Comments
 (0)
0