From cc2c21d5225fead188b8c2f1a077f20913faa0d1 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 10 Mar 2016 10:06:08 +0200 Subject: Add target class (cxx.target.class) --- build2/cxx/module.cxx | 14 ++++++++------ 1 file 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) { -- cgit v1.1