Allow enabling CCache through an env variable. This helps enable/disable the option on buildbots.

llvm-svn: 233659
This commit is contained in:
Eric Fiselier 2015-03-31 01:41:32 +00:00
parent 85866b2a28
commit 19036fe19b
1 changed files with 2 additions and 1 deletions

View File

@ -222,7 +222,8 @@ class Configuration(object):
self.execute_external = not use_lit_shell
def configure_ccache(self):
use_ccache = self.get_lit_bool('use_ccache', False)
use_ccache_default = os.environ.get('LIBCXX_USE_CCACHE') is not None
use_ccache = self.get_lit_bool('use_ccache', use_ccache_default)
if use_ccache:
self.cxx.use_ccache = True
self.lit_config.note('enabling ccache')