pgsql: meson: add and use stamp files for generated headers - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: meson: add and use stamp files for generated headers
Date
Msg-id E1ulYBA-0004hV-17@gemulon.postgresql.org
Whole thread Raw
List 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@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(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Translation updates
Next
From: Andres Freund
Date:
Subject: pgsql: Reduce ExecSeqScan* code size using pg_assume()