From 9e0d0fa25066f658b7ca49e324919738c695917e Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 21 Mar 2010 11:17:37 +1100 Subject: build: enable real cacheing with waf configure -C --- buildtools/wafsamba/samba_autoconf.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'buildtools/wafsamba') 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 + -- cgit