From 77fc9816696ebed3cc8685a8fdee464799f2a157 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 18 Apr 2022 13:49:16 +0200 Subject: Skip find() inside target_set::insert*() if target is unlikely to be there --- libbuild2/cc/compile-rule.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libbuild2/cc') diff --git a/libbuild2/cc/compile-rule.cxx b/libbuild2/cc/compile-rule.cxx index 002c889..2faa711 100644 --- a/libbuild2/cc/compile-rule.cxx +++ b/libbuild2/cc/compile-rule.cxx @@ -6056,7 +6056,8 @@ namespace build2 move (mf), nullopt, // Use default extension. target_decl::implied, - trace)); + trace, + true /* skip_find */)); file& bt (p.first.as ()); // Note that this is racy and someone might have created this target @@ -6294,7 +6295,8 @@ namespace build2 move (mf), nullopt, // Use default extension. target_decl::implied, - trace)); + trace, + true /* skip_find */)); file& bt (p.first.as ()); // Note that this is racy and someone might have created this target -- cgit v1.1