aboutsummaryrefslogtreecommitdiff
path: root/build2/test
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-01-20 12:38:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-01-20 12:38:06 +0200
commit699e3bc87d1cbb3c2b19ddaf5db37909cb49f47b (patch)
treea79a11758bfd58b38a14459e1b268843d14ca67e /build2/test
parentea8f6e4aeb120117c72b87da398eeebb35fe192a (diff)
Remove prerequisite caching in scope
We don't share them often and those that are shared (e.g., cxx{} in obja/objs{}) are lightweight (SOO).
Diffstat (limited to 'build2/test')
-rw-r--r--build2/test/common.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/test/common.cxx b/build2/test/common.cxx
index afd52e6..66be9d8 100644
--- a/build2/test/common.cxx
+++ b/build2/test/common.cxx
@@ -143,7 +143,7 @@ namespace build2
t.name == n->value && // Name matches.
tt.name == n->type && // Target type matches.
d == n->dir && // Directory matches.
- &search (*n, *root_) == &t;
+ search (*n, *root_) == t;
if (r)
break;
@@ -190,7 +190,7 @@ namespace build2
t.name == n->value &&
tt.name == n->type &&
d == n->dir &&
- &search (*n, *root_) == &t;
+ search (*n, *root_) == t;
if (!r)
continue; // Not our target.