Re: [HACKERS] show precise repos version for dev builds? - Mailing list pgsql-hackers

From Andres Freund
Subject Re: [HACKERS] show precise repos version for dev builds?
Date
Msg-id 20171012205555.sgvqag7esaswwedf@alap3.anarazel.de
Whole thread Raw
In response to Re: [HACKERS] show precise repos version for dev builds?  (Fabien COELHO <coelho@cri.ensmp.fr>)
Responses Re: [HACKERS] show precise repos version for dev builds?
List pgsql-hackers
Hi,

On 2017-10-12 22:50:47 +0200, Fabien COELHO wrote:
> The make dependencies ensure that the header file is regenerated on each
> build with a phony target, and the C file is thus recompiled and linked into
> the executables on each build. It means that all executables are linked on
> each rebuild, even if not necessary, though.

That'd be quite painful, consider e.g. people using LTO.  If done right
however, that should be avoidable to some degree. When creating the
version file, only replace its contents if the contents differ - that's
just a few lines of scripting.

Greetings,

Andres Freund


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: [HACKERS] show precise repos version for dev builds?
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] oversight in EphemeralNamedRelation support