[libcxx] r233659 - Allow enabling CCache through an env variable. This helps enable/disable the option on buildbots.
Eric Fiselier
eric at efcs.ca
Mon Mar 30 18:41:32 PDT 2015
Author: ericwf
Date: Mon Mar 30 20:41:32 2015
New Revision: 233659
URL: http://llvm.org/viewvc/llvm-project?rev=233659&view=rev
Log:
Allow enabling CCache through an env variable. This helps enable/disable the option on buildbots.
Modified:
libcxx/trunk/test/libcxx/test/config.py
Modified: libcxx/trunk/test/libcxx/test/config.py
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/test/config.py?rev=233659&r1=233658&r2=233659&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/test/config.py (original)
+++ libcxx/trunk/test/libcxx/test/config.py Mon Mar 30 20:41:32 2015
@@ -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')
More information about the cfe-commits
mailing list