pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: meson: add and use stamp files for generated headers
Date: Mon, 11 Aug 2025 19:27:32 +0000
Message-ID: <E1ulYBA-0004hV-17@gemulon.postgresql.org> (raw)

meson: add and use stamp files for generated headers

Without using stamp files, meson lists the generated headers as the dependency
for every .c file, bloating build.ninja by more than 2x. Processing all the
dependencies also increases the time to generate build.ninja.

The immediate benefit is that this makes re-configuring and clean builds a bit
faster. The main motivation however is that I have other patches that
introduce additional build targets that further would increase the size of
build.ninja, making re-configuring more noticeably slower.

Reviewed-by: Nazir Bilal Yavuz <byavuz81@gmail.com>
Discussion: https://postgr.es/m/cgkdgvzdpinkacf4v33mky7tbmk467oda5dd4dlmucjjockxzi@xkqfvjoq4uiy

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/01d6832c109bcc37acb30e934b7c472334b7c291

Modified Files
--------------
meson.build              | 16 +++++++++-------
src/backend/meson.build  |  2 +-
src/fe_utils/meson.build |  2 +-
src/include/meson.build  | 21 +++++++++++++++++++++
4 files changed, 32 insertions(+), 9 deletions(-)



Message-ID: <E1ulYBA-0004hV-17@gemulon.postgresql.org>
Permalink:  ../E1ulYBA-0004hV-17@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ulYBA-0004hV-17@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: meson: add and use stamp files for generated headers
  In-Reply-To: <E1ulYBA-0004hV-17@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox