2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 09:57:15 +01:00

Obtain run_build_cls from run_build/check parameters

This commit is contained in:
Thomas Nagy 2017-03-04 08:22:12 +01:00
parent e596b529d8
commit 512bbfd819
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA

View File

@ -565,7 +565,7 @@ def run_build(self, *k, **kw):
if not os.path.exists(bdir):
os.makedirs(bdir)
cls_name = getattr(self, 'run_build_cls', 'build')
cls_name = kw.get('run_build_cls') or 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
@ -636,5 +636,3 @@ def test(self, *k, **kw):
self.end_msg(self.ret_msg(kw['okmsg'], kw), **kw)
return ret