summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorserge-sans-paille <sguelton@redhat.com>2021-08-18 23:48:14 +0200
committerTom Stellard <tstellar@redhat.com>2022-01-11 18:23:09 -0800
commiteecd0f055baa46d1edc57cd8df0c451cefb70359 (patch)
tree5ed18042732b7fddba1e615a66853bebe26abafa
parentbfb1bd1b9906356c747ac480bc44230790c87cb1 (diff)
downloadllvm-eecd0f055baa46d1edc57cd8df0c451cefb70359.tar.gz
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 46c947af7ead0a939fbd7a93c370e7ead2128d07)
-rw-r--r--llvm/utils/lit/lit/TestingConfig.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/lit/lit/TestingConfig.py b/llvm/utils/lit/lit/TestingConfig.py
index d534d895e4ba..37558bd5059c 100644
--- a/llvm/utils/lit/lit/TestingConfig.py
+++ b/llvm/utils/lit/lit/TestingConfig.py
@@ -28,7 +28,7 @@ class TestingConfig(object):
'TMPDIR', 'TMP', 'TEMP', 'TEMPDIR', 'AVRLIT_BOARD',
'AVRLIT_PORT', 'FILECHECK_OPTS', 'VCINSTALLDIR',
'VCToolsinstallDir', 'VSINSTALLDIR', 'WindowsSdkDir',
- 'WindowsSDKLibVersion']
+ 'WindowsSDKLibVersion', 'SOURCE_DATE_EPOCH']
if sys.platform == 'win32':
pass_vars.append('INCLUDE')