aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/common.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-10-26 19:07:42 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-10-26 19:07:42 +0200
commit296575ba025ded840304c1e3b6365a6b6ee7ea48 (patch)
treeda8ecb3dfc8178b7ddf00c51a21fbe8d375cd435 /build2/cc/common.hxx
parent1dba8a7b279c857e9c13cbd6496849f5501e9944 (diff)
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).
Diffstat (limited to 'build2/cc/common.hxx')
-rw-r--r--build2/cc/common.hxx3
1 files changed, 3 insertions, 0 deletions
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; // <type>[-<variant>]
+ 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;