From 32e60fc5d4e771c5776ddb6715db10e5de182f28 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 15 Oct 2016 12:07:09 +0200 Subject: Pass test script to parser --- build2/test/rule.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'build2/test/rule.cxx') diff --git a/build2/test/rule.cxx b/build2/test/rule.cxx index f48a3d1..dd1e029 100644 --- a/build2/test/rule.cxx +++ b/build2/test/rule.cxx @@ -13,6 +13,7 @@ #include #include +#include using namespace std; using namespace butl; @@ -308,6 +309,7 @@ namespace build2 perform_script (action, target& t) { using namespace script; + using script::script; for (target* pt: t.prerequisite_targets) { @@ -319,11 +321,12 @@ namespace build2 try { + script s (t, st); + concurrent_runner r; + ifdstream ifs (sp); parser p; - concurrent_runner run; - - p.parse (ifs, sp, t, st, run); + p.parse (ifs, sp, s, r); } catch (const io_error& e) { -- cgit v1.1