diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-27 12:25:59 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-27 12:25:59 +0200 |
commit | bb171dd3fa145b15a6defd122b15be6822806e2b (patch) | |
tree | fc497e49558fabf00a1904b8c9b2526ae9f588fb /build2/scope | |
parent | 65e8ed3aaf9ed05bc1bc99d9e5111b0c7d6cadb4 (diff) |
Extract target from C++ compiler, set as cxx.host.{cpu,vendor,system,version}
Diffstat (limited to 'build2/scope')
-rw-r--r-- | build2/scope | 5 |
1 files changed, 4 insertions, 1 deletions
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 |