From 296575ba025ded840304c1e3b6365a6b6ee7ea48 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 26 Oct 2018 19:07:42 +0200 Subject: Add config.{c,cxx}.{id,version,target} configuration variables These variables allow overriding guessed compiler id/version/target, for example, in case of mis-guesses or when working with compilers that don't report their base (e.g., GCC, Clang) with -v/--version (common in the embedded space). --- build2/version/snapshot-git.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'build2/version/snapshot-git.cxx') diff --git a/build2/version/snapshot-git.cxx b/build2/version/snapshot-git.cxx index 278c5ce..3f19e62 100644 --- a/build2/version/snapshot-git.cxx +++ b/build2/version/snapshot-git.cxx @@ -31,9 +31,10 @@ namespace build2 // { const char* args[] {"git", "-C", d, "status", "--porcelain", nullptr}; - r.committed = run (3 /* verbosity */, - args, - [](string& s) {return move (s);}).empty (); + r.committed = run ( + 3 /* verbosity */, + args, + [](string& s, bool) {return move (s);}).empty (); } // Now extract the commit id and date. One might think that would be -- cgit v1.1