aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/common.hxx
diff options
context:
space:
mode:
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) {}