[llvm] 0d89963 - [Lit] Pass through DFLTCC from the surrounding environment
Ilya Leoshkevich via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 22 16:39:06 PDT 2022
Author: Ilya Leoshkevich
Date: 2022-07-23T01:38:30+02:00
New Revision: 0d89963df354ee309c15f67dc47c8ab3cb5d0fb2
URL: https://github.com/llvm/llvm-project/commit/0d89963df354ee309c15f67dc47c8ab3cb5d0fb2
DIFF: https://github.com/llvm/llvm-project/commit/0d89963df354ee309c15f67dc47c8ab3cb5d0fb2.diff
LOG: [Lit] Pass through DFLTCC from the surrounding environment
Many distros ship zlib with the IBM Z deflate hardware acceleration
patch [1]. Sometimes it's desirable to disable the acceleration, for
example, for reproducibility. This can be done by exporting DFLTCC=0.
llvm-lit clears this environment variable, which causes
compress-debug-sections-zlib.test fail on z15 and later machines. Add
DFLTCC to the list of variables to keep.
[1] https://github.com/madler/zlib/pull/410
Reviewed By: abrachet
Differential Revision: https://reviews.llvm.org/D130253
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 bdb87c376127c..55e2a764d8fa6 100644
--- a/llvm/utils/lit/lit/TestingConfig.py
+++ b/llvm/utils/lit/lit/TestingConfig.py
@@ -58,6 +58,7 @@ def fromdefaults(litConfig):
'WindowsSDKLibVersion',
'SOURCE_DATE_EPOCH',
'GTEST_FILTER',
+ 'DFLTCC',
]
if sys.platform == 'win32':
More information about the llvm-commits
mailing list