Skip to content

Commit

Permalink
[lit] Passthrough CLANG_MODULE_CACHE_PATH env var
Browse files Browse the repository at this point in the history
This environment variable can be set to control module
caching. It disables caching by setting the variable
empty. As such, it needs to be handled differently
from other environment variables here which are
assumed to not be empty.
  • Loading branch information
abrachet committed Jun 11, 2022
1 parent cf5c63d commit 6466c9a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions llvm/utils/lit/lit/TestingConfig.py
Expand Up @@ -77,6 +77,14 @@ def fromdefaults(litConfig):
if val:
environment[var] = val

pass_vars_emptyable = [
'CLANG_MODULE_CACHE_PATH',
]

for var in pass_vars_emptyable:
if var in os.environ:
environment[var] = os.environ[var]

# Set the default available features based on the LitConfig.
available_features = []
if litConfig.useValgrind:
Expand Down

0 comments on commit 6466c9a

Please sign in to comment.