aboutsummaryrefslogtreecommitdiff
path: root/build2/utility.txx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/utility.txx')
-rw-r--r--build2/utility.txx8
1 files changed, 6 insertions, 2 deletions
diff --git a/build2/utility.txx b/build2/utility.txx
index 7848296..bf9d9ab 100644
--- a/build2/utility.txx
+++ b/build2/utility.txx
@@ -6,7 +6,11 @@ namespace build2
{
template <typename T>
T
- run (const char* const* args, T (*f) (string&), bool err, sha256* checksum)
+ run (const char* const* args,
+ T (*f) (string&),
+ bool err,
+ bool ignore_exit,
+ sha256* checksum)
{
process pr (start_run (args, err));
ifdstream is (pr.in_ofd);
@@ -28,7 +32,7 @@ namespace build2
is.close (); // Don't block.
- if (!finish_run (args, err, pr, l))
+ if (!(finish_run (args, err, pr, l) || ignore_exit))
r = T ();
return r;