Skip to content

Commit

Permalink
[Lit] Pass through DFLTCC from the surrounding environment
Browse files Browse the repository at this point in the history
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] madler/zlib#410

Reviewed By: abrachet

Differential Revision: https://reviews.llvm.org/D130253
  • Loading branch information
iii-i committed Jul 22, 2022
1 parent b5414b5 commit 0d89963
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/utils/lit/lit/TestingConfig.py
Expand Up @@ -58,6 +58,7 @@ def fromdefaults(litConfig):
'WindowsSDKLibVersion',
'SOURCE_DATE_EPOCH',
'GTEST_FILTER',
'DFLTCC',
]

if sys.platform == 'win32':
Expand Down

0 comments on commit 0d89963

Please sign in to comment.