aboutsummaryrefslogtreecommitdiff
path: root/build2/utility.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-08-22 12:55:21 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-08-22 12:55:21 +0200
commit48e2e4140b8e5aacdfd107a1215f21c9632c81c8 (patch)
tree7897b62300a433533318be5de14f9ba0745da4d8 /build2/utility.txx
parent3b6f882ce0dae1d80a330b36a63fbe65026a3278 (diff)
Cache process_path, use fallback search directory for binutils
Diffstat (limited to 'build2/utility.txx')
-rw-r--r--build2/utility.txx9
1 files changed, 5 insertions, 4 deletions
diff --git a/build2/utility.txx b/build2/utility.txx
index 3e29db6..7256547 100644
--- a/build2/utility.txx
+++ b/build2/utility.txx
@@ -6,13 +6,14 @@ namespace build2
{
template <typename T>
T
- run (const char* args[],
+ run (const process_path& pp,
+ const char* args[],
T (*f) (string&),
bool err,
bool ignore_exit,
sha256* checksum)
{
- process pr (start_run (args, err));
+ process pr (run_start (pp, args, err));
T r;
string l; // Last line of output.
@@ -35,10 +36,10 @@ namespace build2
}
catch (const ifdstream::failure&)
{
- // Presumably the child process failed. Let finish_run() deal with that.
+ // Presumably the child process failed. Let run_finish() deal with that.
}
- if (!(finish_run (args, err, pr, l) || ignore_exit))
+ if (!(run_finish (args, err, pr, l) || ignore_exit))
r = T ();
return r;