diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-03-21 11:17:37 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-04-06 20:26:59 +1000 |
commit | 9e0d0fa25066f658b7ca49e324919738c695917e (patch) | |
tree | 7afb24d537581b57bbc7253d3088267550c35b7d /buildtools/wafsamba | |
parent | e8775226ad2e40b96d8d5aae6c31c5845c562f20 (diff) | |
download | samba-9e0d0fa25066f658b7ca49e324919738c695917e.tar.gz samba-9e0d0fa25066f658b7ca49e324919738c695917e.tar.bz2 samba-9e0d0fa25066f658b7ca49e324919738c695917e.zip |
build: enable real cacheing with waf configure -C
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r-- | buildtools/wafsamba/samba_autoconf.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_autoconf.py b/buildtools/wafsamba/samba_autoconf.py index 1c1095ea47..fc8027c5f2 100644 --- a/buildtools/wafsamba/samba_autoconf.py +++ b/buildtools/wafsamba/samba_autoconf.py @@ -428,3 +428,14 @@ def CHECK_CC_ENV(conf): if len(conf.env.CC) == 1: # make for nicer logs if just a single command conf.env.CC = conf.env.CC[0] + +@conf +def ENABLE_CONFIGURE_CACHE(conf): + '''enable cache of configure results''' + if os.environ.get('WAFCACHE'): + # already setup + return + cache_path = os.path.join(conf.blddir, '.confcache') + mkdir_p(cache_path) + Options.cache_global = os.environ['WAFCACHE'] = cache_path + |