1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

Lit: Introduce an environment variable, $LIT_PRESERVES_TMP, to preserve TMP (and TEMP).

This is intended to check how many temporary files would be generated in automated builders.

llvm-svn: 192887
This commit is contained in:
NAKAMURA Takumi 2013-10-17 12:10:12 +00:00
parent d52a8d6d92
commit 2fdd380836

View File

@ -35,6 +35,15 @@ class TestingConfig:
'TMP' : os.environ.get('TMP',''), 'TMP' : os.environ.get('TMP',''),
}) })
# The option to preserve TMP (and TEMP).
# This is intended to check how many temporary files would be generated
# in automated builders.
if os.environ.has_key('LIT_PRESERVES_TMP'):
environment.update({
'TEMP' : os.environ.get('TEMP',''),
'TMP' : os.environ.get('TMP',''),
})
# Set the default available features based on the LitConfig. # Set the default available features based on the LitConfig.
available_features = [] available_features = []
if litConfig.useValgrind: if litConfig.useValgrind: