pgsql: meson: add and use stamp files for generated headers

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: meson: add and use stamp files for generated headers
Date: 2025-08-11 19:27:32
Message-ID: E1ulYBA-0004hV-17@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)gmail(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2025-08-11 19:38:07 pgsql: Last-minute updates for release notes.
Previous Message Nathan Bossart 2025-08-11 17:39:36 pgsql: Fix MSVC pg_upgrade test.