Skip to content

Commit ca853a2

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 1c06590 commit ca853a2

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
{
@@ -311,7 +312,7 @@ s{PG_VERSION_STR "[^"]+"}{__STRINGIFY(x) #x\n#define __STRINGIFY2(z) __STRINGIFY
311312
if ($self->{options}->{python}
312313
&& IsNewer(
313314
'src\pl\plpython\spiexceptions.h',
314-
'src\include\backend\errcodes.txt'))
315+
'src\backend\utils\errcodes.txt'))
315316
{
316317
print "Generating spiexceptions.h...\n";
317318
system(

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy