From 699e3bc87d1cbb3c2b19ddaf5db37909cb49f47b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 20 Jan 2017 12:38:06 +0200 Subject: 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). --- build2/test/common.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build2/test') 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. -- cgit v1.1