aboutsummaryrefslogtreecommitdiff
path: root/build2/cxx/compile.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/cxx/compile.cxx')
-rw-r--r--build2/cxx/compile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/cxx/compile.cxx b/build2/cxx/compile.cxx
index c4e9cee..914cd10 100644
--- a/build2/cxx/compile.cxx
+++ b/build2/cxx/compile.cxx
@@ -236,7 +236,7 @@ namespace build2
auto test = [&s, &n, &e, &var] (const target_type& tt)
-> const target_type*
{
- if (auto l = s.lookup (tt, n, var))
+ if (auto l = s.find (var, tt, n))
if (cast<string> (l) == e)
return &tt;