Set the configuration test build class on conf.run_build_cls

This commit is contained in:
Thomas Nagy 2016-09-10 12:12:46 +02:00
parent 62459e1147
commit 86e9b6b959
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA
1 changed files with 2 additions and 2 deletions

View File

@ -534,7 +534,6 @@ def run_build(self, *k, **kw):
$ waf configure --confcache
"""
lst = [str(v) for (p, v) in kw.items() if p != 'env']
h = Utils.h_list(lst)
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):
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.progress_bar = 0
bld.targets = '*'