aboutsummaryrefslogtreecommitdiff
path: root/build2
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-03-10 10:06:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-03-10 10:06:08 +0200
commitcc2c21d5225fead188b8c2f1a077f20913faa0d1 (patch)
tree6cf953cfa2c9aca142f71a14a0d5aae982a8445d /build2
parent3e78b3eea3a95e8ef5bee59a9c85ddfa73c03ab7 (diff)
Add target class (cxx.target.class)
Diffstat (limited to 'build2')
-rw-r--r--build2/cxx/module.cxx14
1 files changed, 8 insertions, 6 deletions
diff --git a/build2/cxx/module.cxx b/build2/cxx/module.cxx
index 939cdfe..364b801 100644
--- a/build2/cxx/module.cxx
+++ b/build2/cxx/module.cxx
@@ -218,15 +218,17 @@ namespace build2
string canon;
triplet t (ci.target, canon);
- l5 ([&]{trace << "canonical target '" << canon << "'";});
+ l5 ([&]{trace << "canonical target: '" << canon << "'; "
+ << "class: " << t.class_;});
// Enter as cxx.target.{cpu,vendor,system,version}.
//
- r.assign ("cxx.target", string_type) = canon;
- r.assign ("cxx.target.cpu", string_type) = t.cpu;
- r.assign ("cxx.target.vendor", string_type) = t.vendor;
- r.assign ("cxx.target.system", string_type) = t.system;
- r.assign ("cxx.target.version", string_type) = t.version;
+ r.assign ("cxx.target", string_type) = move (canon);
+ r.assign ("cxx.target.cpu", string_type) = move (t.cpu);
+ r.assign ("cxx.target.vendor", string_type) = move (t.vendor);
+ r.assign ("cxx.target.system", string_type) = move (t.system);
+ r.assign ("cxx.target.version", string_type) = move (t.version);
+ r.assign ("cxx.target.class", string_type) = move (t.class_);
}
catch (const invalid_argument& e)
{