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:
parent
e596b529d8
commit
512bbfd819
@ -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
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user