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/cc/common.hxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'build2/cc/common.hxx') diff --git a/build2/cc/common.hxx b/build2/cc/common.hxx index 9629fa3..dccf62e 100644 --- a/build2/cc/common.hxx +++ b/build2/cc/common.hxx @@ -40,6 +40,9 @@ namespace build2 const char* const* x_hinters; const variable& config_x; + const variable& config_x_id; // [-] + const variable& config_x_version; + const variable& config_x_target; const variable& config_x_poptions; const variable& config_x_coptions; const variable& config_x_loptions; -- cgit v1.1