diff options
Diffstat (limited to 'build2/cxx')
-rw-r--r-- | build2/cxx/compile.cxx | 2 | ||||
-rw-r--r-- | build2/cxx/link.cxx | 4 |
2 files changed, 3 insertions, 3 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; diff --git a/build2/cxx/link.cxx b/build2/cxx/link.cxx index aa60c7e..e4154ab 100644 --- a/build2/cxx/link.cxx +++ b/build2/cxx/link.cxx @@ -780,7 +780,7 @@ namespace build2 if (dd.expect ("cxx.link 1") != nullptr) l4 ([&]{trace << "rule mismatch forcing update of " << t;}); - lookup<const value> ranlib; + lookup ranlib; // Then the linker checksum (ar/ranlib or C++ compiler). // @@ -789,7 +789,7 @@ namespace build2 ranlib = rs["config.bin.ranlib"]; if (ranlib->empty ()) // @@ TMP until proper NULL support. - ranlib = lookup<const value> (); + ranlib = lookup (); const char* rl ( ranlib |