From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] toolchain/toolchain-wrapper: let recent GCC handle SOURCE_DATE_EPOCH
Date: Sat, 27 Jun 2020 17:20:22 +0200 [thread overview]
Message-ID: <20200627172022.10010285@windsurf> (raw)
In-Reply-To: <20200626154927.3185266-1-john@metanate.com>
On Fri, 26 Jun 2020 16:49:27 +0100
John Keeping <john@metanate.com> wrote:
> When using precompiled headers, changing any macros defined on the
> command line will invalidate the precompiled header. With
> toolchain-wrapper adding __DATE__ and __TIME__, any commits to Buildroot
> will invalidate incremental builds regardless of whether the precompiled
> header actually uses those values (affecting _OVERRIDE_SRCDIR).
>
> GCC-7 and later support SOURCE_DATE_EPOCH and use it to define __DATE__
> and __TIME__ internally, avoiding any impact on precompiled headers.
>
> Disable the custom handling in toolchain-wrapper if GCC is version 7 or
> newer.
>
> Signed-off-by: John Keeping <john@metanate.com>
> ---
> toolchain/toolchain-wrapper.c | 10 ++++++++++
> toolchain/toolchain-wrapper.mk | 3 +++
> 2 files changed, 13 insertions(+)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2020-06-27 15:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-26 15:49 [Buildroot] [PATCH] toolchain/toolchain-wrapper: let recent GCC handle SOURCE_DATE_EPOCH John Keeping
2020-06-27 15:20 ` Thomas Petazzoni [this message]
2020-07-16 16:32 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200627172022.10010285@windsurf \
--to=thomas.petazzoni@bootlin.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox