diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-08-23 09:46:11 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-08-23 09:46:11 +0200 |
commit | 421d0a4d1a7786e90407072b378cc060d325907d (patch) | |
tree | 881b02405e74c11c74979bc6cd5df4f313c209cf /libbuild2/test | |
parent | 6cc8301e4fb819393c1245cea0fbfb89e69b90b4 (diff) |
Variables
Diffstat (limited to 'libbuild2/test')
-rw-r--r-- | libbuild2/test/rule.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libbuild2/test/rule.cxx b/libbuild2/test/rule.cxx index c4767cf..ef9adca 100644 --- a/libbuild2/test/rule.cxx +++ b/libbuild2/test/rule.cxx @@ -384,6 +384,8 @@ namespace build2 target_state rule:: perform_script (action a, const target& t, size_t pass_n) const { + context& ctx (t.ctx); + // First pass through. // if (pass_n != 0) @@ -433,7 +435,7 @@ namespace build2 const path& buildignore_file (rs.root_extra->buildignore_file); dir_path bl; - if (cast_false<bool> (rs.vars[var_forwarded])) + if (cast_false<bool> (rs.vars[ctx.var_forwarded])) { bl = bs.src_path () / wd.leaf (bs.out_path ()); clean_backlink (bl, verb_never); @@ -490,7 +492,7 @@ namespace build2 wait_guard wg; if (!dry_run) - wg = wait_guard (t.ctx, t.ctx.count_busy (), t[a].task_count); + wg = wait_guard (ctx, ctx.count_busy (), t[a].task_count); // Result vector. // @@ -538,7 +540,7 @@ namespace build2 { scope_state& r (res.back ()); - if (!sched.async (t.ctx.count_busy (), + if (!sched.async (ctx.count_busy (), t[a].task_count, [this] (const diag_frame* ds, scope_state& r, |