From 86e9b6b95949bb356fd981a9d0eada807bfd4d21 Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Sat, 10 Sep 2016 12:12:46 +0200 Subject: [PATCH] Set the configuration test build class on conf.run_build_cls --- waflib/Configure.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/waflib/Configure.py b/waflib/Configure.py index 409b00ed..0818ecbf 100644 --- a/waflib/Configure.py +++ b/waflib/Configure.py @@ -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 = '*'