aboutsummaryrefslogtreecommitdiff
path: root/build/test/rule.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-08-17 11:18:10 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-08-17 11:18:10 +0200
commit0d5234f4aefd3cc5b5948cc1b9dd009e50046f5e (patch)
treeb8b3bdfe8e3a6f688434bcb3d9b37e110f47dda3 /build/test/rule.cxx
parent040ebadfa9e606b56005b80571e7fc714a3f1f2c (diff)
Tighten variable_map interface
Diffstat (limited to 'build/test/rule.cxx')
-rw-r--r--build/test/rule.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/build/test/rule.cxx b/build/test/rule.cxx
index 30de93c..10b628d 100644
--- a/build/test/rule.cxx
+++ b/build/test/rule.cxx
@@ -33,12 +33,14 @@ namespace build
// @@ This logic doesn't take into account target type/pattern-
// specific variables.
//
+ // @@ Perhaps a find_any(<list-of-vars>)?
+ //
for (auto p (t.vars.find_namespace ("test"));
p.first != p.second;
++p.first)
{
const variable& var (p.first->first);
- value_ptr& val (p.first->second);
+ const value_ptr& val (p.first->second);
// If we have test, then always use that.
//