waflib.Build provides CACHE_SUFFIX constant to append to the target
name. We have a reference to samba-specific cache suffix (.cache.py)
while original WAF uses _cache.py as a cache suffix since 2011 (see
commit
44a967e326cc2e670a31b3712e4763b72d65e81b in WAF project code).
Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
from waflib.Configure import ConfigurationContext
from waflib.Logs import debug
from waflib import ConfigSet
+from waflib.Build import CACHE_SUFFIX
# TODO: make this a --option
LIB_PATH="shared"
from new commands'''
env = ConfigSet.ConfigSet()
try:
- p = os.path.join(Context.g_module.out, 'c4che/default_cache.py')
+ p = os.path.join(Context.g_module.out, 'c4che/default'+CACHE_SUFFIX)
env.load(p)
except (OSError, IOError):
pass