Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
toolchain/toolchain-wrapper: let recent GCC handle SOURCE_DATE_EPOCH
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 <[email protected]> Signed-off-by: Thomas Petazzoni <[email protected]> (cherry picked from commit 408bc354a9c14b3940938cfb7a3e3eefa81641a5) Signed-off-by: Peter Korsgaard <[email protected]>
- Loading branch information