[all-commits] [llvm/llvm-project] 0df8ae: [LLD] [COFF] Pick timestamps from the SOURCE_DATE_...
Martin Storsjö via All-commits
all-commits at lists.llvm.org
Sat Feb 10 13:57:23 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0df8aed6c30f08ded526038a6bbb4daf113a31c1
https://github.com/llvm/llvm-project/commit/0df8aed6c30f08ded526038a6bbb4daf113a31c1
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.
More information about the All-commits
mailing list