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 authored and arichardson committed Aug 22, 2023
2 parents b43683f + 0d89963 commit 2f93157
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/utils/lit/lit/TestingConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def fromdefaults(litConfig):
'WindowsSDKLibVersion',
'SOURCE_DATE_EPOCH',
'GTEST_FILTER',
'DFLTCC',
]

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

0 comments on commit 2f93157

Please sign in to comment.