mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
wafsamba: remove the need of BuildContext.bdir
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
c0104a4a04
commit
8e1135f99b
@ -1011,14 +1011,14 @@ def save_samba_deps(bld, tgt_list):
|
||||
if tdeps != {}:
|
||||
denv.outenv[t.sname] = tdeps
|
||||
|
||||
depsfile = os.path.join(bld.bdir, "sambadeps")
|
||||
depsfile = os.path.join(bld.cache_dir, "sambadeps")
|
||||
denv.store_fast(depsfile)
|
||||
|
||||
|
||||
|
||||
def load_samba_deps(bld, tgt_list):
|
||||
'''load a previous set of build dependencies if possible'''
|
||||
depsfile = os.path.join(bld.bldnode.abspath(), "sambadeps")
|
||||
depsfile = os.path.join(bld.cache_dir, "sambadeps")
|
||||
denv = ConfigSet.ConfigSet()
|
||||
try:
|
||||
debug('deps: checking saved dependencies')
|
||||
|
@ -44,7 +44,6 @@ for y in (Build.BuildContext, Build.CleanContext, Build.InstallContext, Build.Un
|
||||
def pre_build(self):
|
||||
self.cwdx = self.bldnode.parent
|
||||
self.cwd = self.cwdx.abspath()
|
||||
self.bdir = self.bldnode.abspath()
|
||||
return Build.BuildContext.old_pre_build(self)
|
||||
Build.BuildContext.old_pre_build = Build.BuildContext.pre_build
|
||||
Build.BuildContext.pre_build = pre_build
|
||||
|
Loading…
Reference in New Issue
Block a user