aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/utility.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-02-12 13:54:40 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-02-12 13:54:40 +0200
commit67617fc444600cad5de2338f4d6f49d7a46fd915 (patch)
treef81b44aecf89147eb7e178f49e314d26a6d1fee6 /libbuild2/utility.hxx
parent7b7732096c0c4cb6f9f1c8e31a48417973748ff8 (diff)
Add convenience run_start() overload
Diffstat (limited to 'libbuild2/utility.hxx')
-rw-r--r--libbuild2/utility.hxx27
1 files changed, 26 insertions, 1 deletions
diff --git a/libbuild2/utility.hxx b/libbuild2/utility.hxx
index 50af5e6..18122e0 100644
--- a/libbuild2/utility.hxx
+++ b/libbuild2/utility.hxx
@@ -293,7 +293,20 @@ namespace build2
const location& = location ());
inline process
- run_start (const process_env& pe, // Implicit-constructible from process_path.
+ run_start (uint16_t verbosity,
+ const process_env& pe,
+ cstrings& args,
+ int in,
+ int out,
+ bool error = true,
+ const dir_path& cwd = dir_path (),
+ const location& l = location ())
+ {
+ return run_start (verbosity, pe, args.data (), in, out, error, cwd, l);
+ }
+
+ inline process
+ run_start (const process_env& pe,
const char* args[],
int in,
int out,
@@ -304,6 +317,18 @@ namespace build2
return run_start (verb_never, pe, args, in, out, error, cwd, l);
}
+ inline process
+ run_start (const process_env& pe,
+ cstrings& args,
+ int in,
+ int out,
+ bool error = true,
+ const dir_path& cwd = dir_path (),
+ const location& l = location ())
+ {
+ return run_start (pe, args.data (), in, out, error, cwd, l);
+ }
+
inline void
run (const process_path& p,
const char* args[],