[PATCH] D130253: [Lit] Pass through DFLTCC from the surrounding environment

Ilya Leoshkevich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 21 05:02:54 PDT 2022


iii created this revision.
iii added a reviewer: abrachet.
Herald added a subscriber: delcypher.
Herald added a project: All.
iii requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D130253

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


Index: llvm/utils/lit/lit/TestingConfig.py
===================================================================
--- llvm/utils/lit/lit/TestingConfig.py
+++ llvm/utils/lit/lit/TestingConfig.py
@@ -58,6 +58,7 @@
             'WindowsSDKLibVersion',
             'SOURCE_DATE_EPOCH',
             'GTEST_FILTER',
+            'DFLTCC',
         ]
 
         if sys.platform == 'win32':


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130253.446440.patch
Type: text/x-patch
Size: 382 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220721/247d6e9d/attachment.bin>


More information about the llvm-commits mailing list