From 145adc9d4bc338657ce6f609dcac67682eb329e3 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 17 Sep 2016 00:39:40 +0300 Subject: Audit all print_process()/process ctor for path_search() --- build2/cli/rule.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'build2/cli') 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 (rs["config.cli"])); - cstrings args {cli.string ().c_str ()}; + const process_path& cli (cast (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 (); -- cgit v1.1