Skip to content

Commit 1a2d9a6

Browse files
committed
Fix parallel make issue with new fmgrprotos.h
The make rules needed further refinement so that we don't run multiple generations per build. reported by Tom Lane
1 parent 0bc1207 commit 1a2d9a6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/backend/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ storage/lmgr/lwlocknames.h: storage/lmgr/generate-lwlocknames.pl storage/lmgr/lw
139139
utils/errcodes.h: utils/generate-errcodes.pl utils/errcodes.txt
140140
$(MAKE) -C utils errcodes.h
141141

142-
utils/fmgroids.h utils/fmgrprotos.h: utils/Gen_fmgrtab.pl catalog/Catalog.pm $(top_srcdir)/src/include/catalog/pg_proc.h
142+
# see explanation in parser/Makefile
143+
utils/fmgrprotos.h: utils/fmgroids.h ;
144+
145+
utils/fmgroids.h: utils/Gen_fmgrtab.pl catalog/Catalog.pm $(top_srcdir)/src/include/catalog/pg_proc.h
143146
$(MAKE) -C utils $(notdir $@)
144147

145148
utils/probes.h: utils/probes.d

src/backend/utils/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ all: errcodes.h fmgroids.h fmgrprotos.h probes.h
2121
$(SUBDIRS:%=%-recursive): fmgroids.h fmgrprotos.h
2222

2323
# see explanation in ../parser/Makefile
24-
fmgroids.h fmgrprotos.h: fmgrtab.c ;
24+
fmgrprotos.h: fmgroids.h ;
25+
fmgroids.h: fmgrtab.c ;
2526

2627
fmgrtab.c: Gen_fmgrtab.pl $(catalogdir)/Catalog.pm $(top_srcdir)/src/include/catalog/pg_proc.h
2728
$(PERL) -I $(catalogdir) $< $(top_srcdir)/src/include/catalog/pg_proc.h

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