From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add "headerscheck" script to test header-file compilability unde
Date: Mon, 19 Aug 2019 18:23:13 +0000
Message-ID: <E1hzmJF-0002OV-B8@gemulon.postgresql.org> (raw)
Add "headerscheck" script to test header-file compilability under C.
We already had "cpluspluscheck", which served the dual purposes of
verifying that headers compile standalone and that they compile as C++.
However, C++ compilers don't have the exact same set of error conditions
as C compilers, so this doesn't really prove that a header will compile
standalone as C.
Hence, add a second script that's largely similar but runs the C
compiler not C++.
Also add a bit more documentation than the none-at-all we had before.
Discussion: https://postgr.es/m/14803.1566175851@sss.pgh.pa.us
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/55ea109188474dae22d90f743d7189a8bdf94d49
Modified Files
--------------
GNUmakefile.in | 5 +-
src/tools/pginclude/README | 48 ++++++++++++
src/tools/pginclude/cpluspluscheck | 5 ++
src/tools/pginclude/headerscheck | 153 +++++++++++++++++++++++++++++++++++++
4 files changed, 210 insertions(+), 1 deletion(-)
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Add "headerscheck" script to test header-file compilability unde
In-Reply-To: <E1hzmJF-0002OV-B8@gemulon.postgresql.org>
References: <E1hzmJF-0002OV-B8@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