diff options
| author | Andres Freund | 2022-07-18 19:15:09 +0000 |
|---|---|---|
| committer | Andres Freund | 2022-07-18 19:24:35 +0000 |
| commit | 2bf626b714b5189d6041c228f74cdb769ea169fa (patch) | |
| tree | 305a951a1a709dfdc4c9323529df55ebcae1469b /src/backend/utils/Makefile | |
| parent | 4f20506fe04092a9174bfc6dea908c3dfdbaaf1e (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/Makefile | 2 |
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 |
