From bbff2b69459a370afd6c74b6b0d3bb080ff22b89 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 14 Mar 2016 13:30:47 +0200 Subject: Add support for guessing ar/ranlib signatures --- build2/utility.txx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'build2/utility.txx') 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 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; -- cgit v1.1