summaryrefslogtreecommitdiff
path: root/src/backend/utils/Makefile
diff options
context:
space:
mode:
authorAndres Freund2022-07-18 19:15:09 +0000
committerAndres Freund2022-07-18 19:24:35 +0000
commit2bf626b714b5189d6041c228f74cdb769ea169fa (patch)
tree305a951a1a709dfdc4c9323529df55ebcae1469b /src/backend/utils/Makefile
parent4f20506fe04092a9174bfc6dea908c3dfdbaaf1e (diff)
Add output file argument to generate-errcodes.pl
This is in preparation for building postgres with meson / ninja. meson's 'capture' (redirecting stdout to a file) is a bit slower than programs redirecting output themselves (mostly due to a python wrapper necessary for windows). That doesn't matter for most things, but errcodes.h is a dependency of nearly everything, making it a bit faster seem worthwhile. Medium term it might also be worth avoiding writing errcodes.h if its contents didn't actually change, to avoid unnecessary recompilations. Reviewed-by: Peter Eisentraut <[email protected]> Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/backend/utils/Makefile')
-rw-r--r--src/backend/utils/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/Makefile b/src/backend/utils/Makefile
index ebda1df72b5..2011c5148d3 100644
--- a/src/backend/utils/Makefile
+++ b/src/backend/utils/Makefile
@@ -52,7 +52,7 @@ fmgr-stamp: Gen_fmgrtab.pl $(catalogdir)/Catalog.pm $(top_srcdir)/src/include/ca
touch $@
errcodes.h: $(top_srcdir)/src/backend/utils/errcodes.txt generate-errcodes.pl
- $(PERL) $(srcdir)/generate-errcodes.pl $< > $@
+ $(PERL) $(srcdir)/generate-errcodes.pl --outfile $@ $<
ifneq ($(enable_dtrace), yes)
probes.h: Gen_dummy_probes.sed