aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/common.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-05-18 09:52:14 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-05-18 09:52:14 +0200
commit79c34dc2feee1d05ee9926501a28c5ec0d6a717a (patch)
treeb9fd55263d36b3f58573b4b60ff30063f249dce2 /build2/cc/common.hxx
parent4fe4e34b4e0e57719872c61bd5930364e3163fc0 (diff)
Add compiler version checks for separate preprocess and compile setup
Diffstat (limited to 'build2/cc/common.hxx')
-rw-r--r--build2/cc/common.hxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/build2/cc/common.hxx b/build2/cc/common.hxx
index 3abb086..bc52311 100644
--- a/build2/cc/common.hxx
+++ b/build2/cc/common.hxx
@@ -100,11 +100,14 @@ namespace build2
// Cached values for some commonly-used variables/values.
//
const string& cid; // x.id
+ uint64_t cmaj; // x.version.major
+ uint64_t cmin; // x.version.minor
+
const target_triplet& ctg; // x.target
const string& tsys; // x.target.system
const string& tclass; // x.target.class
- const string& tstd; // Translated x_std value (can be empty).
+ const string& tstd; // Translated x_std value (can be empty).
const process_path* pkgconfig; // pkgconfig.path (can be NULL).
const dir_paths& sys_lib_dirs; // x.sys_lib_dirs
@@ -142,6 +145,7 @@ namespace build2
const char* install,
const char* uninstall,
const string& id,
+ uint64_t mj, uint64_t mi,
const target_triplet& tg,
const string& std,
const process_path* pkgc,
@@ -155,7 +159,8 @@ namespace build2
x_link (link),
x_install (install),
x_uninstall (uninstall),
- cid (id), ctg (tg), tsys (ctg.system), tclass (ctg.class_),
+ cid (id), cmaj (mj), cmin (mi),
+ ctg (tg), tsys (ctg.system), tclass (ctg.class_),
tstd (std),
pkgconfig (pkgc), sys_lib_dirs (sld), sys_inc_dirs (sid),
x_src (src), x_hdr (hdr), x_inc (inc) {}