aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-04-18 13:49:16 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-04-19 04:12:34 +0200
commit77fc9816696ebed3cc8685a8fdee464799f2a157 (patch)
tree936a3379bcc91593f1a96ba5958ab64f841f43ec /libbuild2/cc
parent095583f1fbab20937720f9311ddb9945ff2b9224 (diff)
Skip find() inside target_set::insert*() if target is unlikely to be there
Diffstat (limited to 'libbuild2/cc')
-rw-r--r--libbuild2/cc/compile-rule.cxx6
1 files changed, 4 insertions, 2 deletions
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<file> ());
// 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<file> ());
// Note that this is racy and someone might have created this target