From bb171dd3fa145b15a6defd122b15be6822806e2b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 27 Jan 2016 12:25:59 +0200 Subject: Extract target from C++ compiler, set as cxx.host.{cpu,vendor,system,version} --- build2/scope | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'build2/scope') diff --git a/build2/scope b/build2/scope index 1a34a48..192ba10 100644 --- a/build2/scope +++ b/build2/scope @@ -142,7 +142,10 @@ namespace build2 assign (const variable& var) {return vars.assign (var).first.get ();} value& - assign (const std::string& name) {return vars.assign (name).first.get ();} + assign (const std::string& name, const build2::value_type* type = nullptr) + { + return vars.assign (name, type).first.get (); + } // Return a value suitable for appending. If the variable does not // exist in this scope's map, then outer scopes are searched for -- cgit v1.1