From b259a318223370881d5244cc38ff8a7be58e2a3e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 3 Dec 2023 13:47:42 +0200 Subject: Reimplement search_existing() functions via target_type::search This allows us to automatically get the target type-specific behavior with regards to the out_only semantics (added in the previous commit) instead of passing it explicitly from each call site. --- libbuild2/dyndep.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbuild2/dyndep.cxx') diff --git a/libbuild2/dyndep.cxx b/libbuild2/dyndep.cxx index c6294bb..68260fb 100644 --- a/libbuild2/dyndep.cxx +++ b/libbuild2/dyndep.cxx @@ -639,7 +639,7 @@ namespace build2 #else prerequisite_key pk {nullopt, {tts[0], &d, &out, &n, move (e)}, s}; - r = pk.tk.type->search (t, pk); + r = pk.tk.type->search (ctx, &t, pk); if (r == nullptr && pk.tk.out->empty ()) r = &create_new_target (ctx, pk); -- cgit v1.1