mirror of https://gitlab.com/ita1024/waf.git
Set the configuration test build class on conf.run_build_cls
This commit is contained in:
parent
62459e1147
commit
86e9b6b959
|
@ -534,7 +534,6 @@ def run_build(self, *k, **kw):
|
||||||
$ waf configure --confcache
|
$ waf configure --confcache
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
lst = [str(v) for (p, v) in kw.items() if p != 'env']
|
lst = [str(v) for (p, v) in kw.items() if p != 'env']
|
||||||
h = Utils.h_list(lst)
|
h = Utils.h_list(lst)
|
||||||
dir = self.bldnode.abspath() + os.sep + (not Utils.is_win32 and '.' or '') + 'conf_check_' + Utils.to_hex(h)
|
dir = self.bldnode.abspath() + os.sep + (not Utils.is_win32 and '.' or '') + 'conf_check_' + Utils.to_hex(h)
|
||||||
|
@ -566,7 +565,8 @@ def run_build(self, *k, **kw):
|
||||||
if not os.path.exists(bdir):
|
if not os.path.exists(bdir):
|
||||||
os.makedirs(bdir)
|
os.makedirs(bdir)
|
||||||
|
|
||||||
self.test_bld = bld = Context.create_context('build', top_dir=dir, out_dir=bdir)
|
cls_name = getattr(self, 'run_build_cls', 'build')
|
||||||
|
self.test_bld = bld = Context.create_context(cls_name, top_dir=dir, out_dir=bdir)
|
||||||
bld.init_dirs()
|
bld.init_dirs()
|
||||||
bld.progress_bar = 0
|
bld.progress_bar = 0
|
||||||
bld.targets = '*'
|
bld.targets = '*'
|
||||||
|
|
Loading…
Reference in New Issue