Skip to content

Commit 46c947a

Browse files
author
serge-sans-paille
committed
Have lit preserve SOURCE_DATE_EPOCH
This environment variable has been standardized for reproducible builds. Setting it can help to have reproducible tests too, so keep it as part of the testing env when set. See https://reproducible-builds.org/docs/source-date-epoch/ Differential Revision: https://reviews.llvm.org/D108332
1 parent 83c633e commit 46c947a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/utils/lit/lit/TestingConfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def fromdefaults(litConfig):
2828
'TMPDIR', 'TMP', 'TEMP', 'TEMPDIR', 'AVRLIT_BOARD',
2929
'AVRLIT_PORT', 'FILECHECK_OPTS', 'VCINSTALLDIR',
3030
'VCToolsinstallDir', 'VSINSTALLDIR', 'WindowsSdkDir',
31-
'WindowsSDKLibVersion']
31+
'WindowsSDKLibVersion', 'SOURCE_DATE_EPOCH']
3232

3333
if sys.platform == 'win32':
3434
pass_vars.append('INCLUDE')

0 commit comments

Comments
 (0)