Skip to content

Commit eecd0f0

Browse files
serge-sans-pailletstellar
serge-sans-paille
authored andcommitted
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 (cherry picked from commit 46c947a)
1 parent bfb1bd1 commit eecd0f0

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)