From 9f5c4c1ae3bff517eefb39130287016514fb31c7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 6 Jan 2017 17:28:45 +0200 Subject: Store platform targets as typed target_triplet --- build2/cc/common | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'build2/cc/common') diff --git a/build2/cc/common b/build2/cc/common index 3974a03..2c79fa6 100644 --- a/build2/cc/common +++ b/build2/cc/common @@ -97,10 +97,10 @@ namespace build2 // Cached values for some commonly-used variables/values. // - const string& cid; // x.id - const string& ctg; // x.target - const string& tsys; // x.target.system - const string& tclass; // x.target.class + const string& cid; // x.id + 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). @@ -140,9 +140,7 @@ namespace build2 const char* install, const char* uninstall, const string& id, - const string& tg, - const string& ts, - const string& tc, + const target_triplet& tg, const string& std, const process_path* pkgc, const dir_paths& sld, @@ -155,7 +153,7 @@ namespace build2 x_link (link), x_install (install), x_uninstall (uninstall), - cid (id), ctg (tg), tsys (ts), tclass (tc), + cid (id), 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