Browse Source

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

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@233659 91177308-0d34-0410-b5e6-96231b3b80d8
Eric Fiselier 10 years ago
parent
commit
f68d637860
1 changed files with 2 additions and 1 deletions
  1. 2 1
      test/libcxx/test/config.py

+ 2 - 1
test/libcxx/test/config.py

@@ -222,7 +222,8 @@ class Configuration(object):
         self.execute_external = not use_lit_shell
         self.execute_external = not use_lit_shell
 
 
     def configure_ccache(self):
     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:
         if use_ccache:
             self.cxx.use_ccache = True
             self.cxx.use_ccache = True
             self.lit_config.note('enabling ccache')
             self.lit_config.note('enabling ccache')