[lld] [LLD] [COFF] Pick timestamps from the SOURCE_DATE_EPOCH variable (PR #81326)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 9 16:15:14 PST 2024


================
@@ -3,9 +3,11 @@ RUN: yaml2obj %p/Inputs/generic.yaml -o %t.obj
 RUN: lld-link %t.obj /debug /Brepro /entry:main /nodefaultlib /out:%t.1.exe
 RUN: lld-link %t.obj /debug /Brepro /entry:main /nodefaultlib /out:%t.2.exe
 RUN: lld-link %t.obj /debug /timestamp:0 /entry:main /nodefaultlib /out:%t.3.exe
+RUN: env SOURCE_DATE_EPOCH=0 lld-link %t.obj /debug /entry:main /nodefaultlib /out:%t.4.exe
----------------
MaskRay wrote:

It'd be useful to test another value like `clang/test/Preprocessor/SOURCE_DATE_EPOCH.c`

https://github.com/llvm/llvm-project/pull/81326


More information about the llvm-commits mailing list