From 79c34dc2feee1d05ee9926501a28c5ec0d6a717a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 18 May 2017 09:52:14 +0200 Subject: Add compiler version checks for separate preprocess and compile setup --- build2/cc/common.hxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'build2/cc/common.hxx') 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) {} -- cgit v1.1