[llvm] 46c947a - Have lit preserve SOURCE_DATE_EPOCH

via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 25 01:38:43 PDT 2021


Author: serge-sans-paille
Date: 2021-08-25T10:38:20+02:00
New Revision: 46c947af7ead0a939fbd7a93c370e7ead2128d07

URL: https://github.com/llvm/llvm-project/commit/46c947af7ead0a939fbd7a93c370e7ead2128d07
DIFF: https://github.com/llvm/llvm-project/commit/46c947af7ead0a939fbd7a93c370e7ead2128d07.diff

LOG: 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

Added: 
    

Modified: 
    llvm/utils/lit/lit/TestingConfig.py

Removed: 
    


################################################################################
diff  --git a/llvm/utils/lit/lit/TestingConfig.py b/llvm/utils/lit/lit/TestingConfig.py
index d534d895e4bae..37558bd5059c0 100644
--- a/llvm/utils/lit/lit/TestingConfig.py
+++ b/llvm/utils/lit/lit/TestingConfig.py
@@ -28,7 +28,7 @@ def fromdefaults(litConfig):
                      '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')


        


More information about the llvm-commits mailing list