aboutsummaryrefslogtreecommitdiff
path: root/build2/cli
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-09-17 00:39:40 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-09-17 23:49:15 +0300
commit145adc9d4bc338657ce6f609dcac67682eb329e3 (patch)
tree3e87bcb76f693a0aa2284a4916a54519be6ae1a4 /build2/cli
parentaaf0d51b8ba50f2614313bf098ee6695235db676 (diff)
Audit all print_process()/process ctor for path_search()
Diffstat (limited to 'build2/cli')
-rw-r--r--build2/cli/rule.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/build2/cli/rule.cxx b/build2/cli/rule.cxx
index 26c17cd..cec8a60 100644
--- a/build2/cli/rule.cxx
+++ b/build2/cli/rule.cxx
@@ -245,9 +245,10 @@ namespace build2
path rels (relative (s->path ()));
scope& rs (t.root_scope ());
- const path& cli (cast<path> (rs["config.cli"]));
- cstrings args {cli.string ().c_str ()};
+ const process_path& cli (cast<process_path> (rs["cli.path"]));
+
+ cstrings args {cli.recall_string ()};
// See if we need to pass --output-{prefix,suffix}
//
@@ -291,7 +292,7 @@ namespace build2
try
{
- process pr (args.data ());
+ process pr (cli, args.data ());
if (!pr.wait ())
throw failed ();