aboutsummaryrefslogtreecommitdiff
path: root/build2/variable
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-01-27 12:25:59 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-01-27 12:25:59 +0200
commitbb171dd3fa145b15a6defd122b15be6822806e2b (patch)
treefc497e49558fabf00a1904b8c9b2526ae9f588fb /build2/variable
parent65e8ed3aaf9ed05bc1bc99d9e5111b0c7d6cadb4 (diff)
Extract target from C++ compiler, set as cxx.host.{cpu,vendor,system,version}
Diffstat (limited to 'build2/variable')
-rw-r--r--build2/variable4
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/variable b/build2/variable
index 0d5b375..5ff310a 100644
--- a/build2/variable
+++ b/build2/variable
@@ -779,9 +779,9 @@ namespace build2
}
std::pair<std::reference_wrapper<value>, bool>
- assign (const std::string& name)
+ assign (const std::string& name, const build2::value_type* type = nullptr)
{
- return assign (var_pool.find (name));
+ return assign (var_pool.find (name, type));
}
std::pair<const_iterator, const_iterator>