[all-commits] [llvm/llvm-project] 0d656f: [LLD] [COFF] Pick timestamps from the SOURCE_DATE_...
Martin Storsjö via All-commits
all-commits at lists.llvm.org
Sat Feb 10 17:50:57 PST 2024
Branch: refs/heads/release/18.x
Home: https://github.com/llvm/llvm-project
Commit: 0d656f0f12d447ac0e197618a0d25495d66388d1
https://github.com/llvm/llvm-project/commit/0d656f0f12d447ac0e197618a0d25495d66388d1
Author: Martin Storsjö <martin at martin.st>
Date: 2024-02-10 (Sat, 10 Feb 2024)
Changed paths:
M lld/COFF/Driver.cpp
M lld/test/COFF/timestamp.test
Log Message:
-----------
[LLD] [COFF] Pick timestamps from the SOURCE_DATE_EPOCH variable (#81326)
The SOURCE_DATE_EPOCH environment variable can be set in order to get
reproducible build.
When linking PE/COFF modules with LLD, the timestamp field is set to the
current time, unless either the /timestamp: or /Brepro option is set. If
neither of them is set, check the SOURCE_DATE_EPOCH variable, before
resorting to using the actual current date and time.
See https://reproducible-builds.org/docs/source-date-epoch/ for reference
on the use of this variable.
(cherry picked from commit 0df8aed6c30f08ded526038a6bbb4daf113a31c1)
More information about the All-commits
mailing list