aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/build
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/build')
-rw-r--r--libbuild2/build/script/parser.cxx17
-rw-r--r--libbuild2/build/script/parser.test.cxx4
-rw-r--r--libbuild2/build/script/script.hxx1
3 files changed, 13 insertions, 9 deletions
diff --git a/libbuild2/build/script/parser.cxx b/libbuild2/build/script/parser.cxx
index cb1fbef..b406f12 100644
--- a/libbuild2/build/script/parser.cxx
+++ b/libbuild2/build/script/parser.cxx
@@ -2514,16 +2514,19 @@ namespace build2
(build2::script::environment&,
const strings&,
auto_fd in,
- bool pipe,
+ pipe_command* pipe,
const optional<deadline>& dl,
- const command& deadline_cmd,
const location& ll)
{
- iss.str (stream_read (move (in),
- pipe,
- dl,
- deadline_cmd,
- ll));
+ read (move (in),
+ false /* whitespace */,
+ false /* newline */,
+ true /* exact */,
+ [&iss] (string&& s) {iss.str (move (s));},
+ pipe,
+ dl,
+ ll,
+ "depdb-dyndep");
});
build2::script::run (*environment_,
diff --git a/libbuild2/build/script/parser.test.cxx b/libbuild2/build/script/parser.test.cxx
index d69929c..e1ee3ef 100644
--- a/libbuild2/build/script/parser.test.cxx
+++ b/libbuild2/build/script/parser.test.cxx
@@ -58,8 +58,8 @@ namespace build2
assert (!c.out && !c.err && !c.exit);
cf (env, c.arguments,
- fdopen_null (), false /* pipe */,
- nullopt /* deadline */, c,
+ fdopen_null (), nullptr /* pipe */,
+ nullopt /* deadline */,
ll);
}
diff --git a/libbuild2/build/script/script.hxx b/libbuild2/build/script/script.hxx
index b2b886c..57a893e 100644
--- a/libbuild2/build/script/script.hxx
+++ b/libbuild2/build/script/script.hxx
@@ -30,6 +30,7 @@ namespace build2
using build2::script::iteration_index;
using build2::script::deadline;
using build2::script::timeout;
+ using build2::script::pipe_command;
using build2::script::command_function;
// Forward declarations.