aboutsummaryrefslogtreecommitdiff
path: root/build2/test/script/parser.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-02-16 16:24:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-02-16 16:40:45 +0200
commit6293ede7a742866a713050737cc2b43d51161b6f (patch)
treef259845f47c2e03432bdd98b4b665e1a3de85d55 /build2/test/script/parser.cxx
parentad9cb7fec5cc74697322620909e0ff1ba9ecb61b (diff)
Add support for detecting dependency cycles
Diffstat (limited to 'build2/test/script/parser.cxx')
-rw-r--r--build2/test/script/parser.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/build2/test/script/parser.cxx b/build2/test/script/parser.cxx
index 69fe979..d3cab0a 100644
--- a/build2/test/script/parser.cxx
+++ b/build2/test/script/parser.cxx
@@ -3018,18 +3018,18 @@ namespace build2
//
const diag_frame* df (diag_frame::stack); // UBSan workaround.
if (!sched.async (task_count,
- [] (scope& s,
+ [] (const diag_frame* ds,
+ scope& s,
script& scr,
- runner& r,
- const diag_frame* ds)
+ runner& r)
{
- diag_frame df (ds);
+ diag_frame::stack_guard dsg (ds);
execute_impl (s, scr, r);
},
+ df,
ref (*chain),
ref (*script_),
- ref (*runner_),
- df))
+ ref (*runner_)))
{
// Bail out if the scope has failed and we weren't instructed
// to keep going.