aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/target.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/target.cxx')
-rw-r--r--libbuild2/target.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbuild2/target.cxx b/libbuild2/target.cxx
index 7eaa3a6..4f11b54 100644
--- a/libbuild2/target.cxx
+++ b/libbuild2/target.cxx
@@ -698,10 +698,11 @@ namespace build2
optional<string> ext,
target_decl decl,
tracer& trace,
+ bool skip_find,
bool need_lock)
{
target_key tk {&tt, &dir, &out, &name, move (ext)};
- target* t (const_cast<target*> (find (tk, trace)));
+ target* t (skip_find ? nullptr : const_cast<target*> (find (tk, trace)));
if (t == nullptr)
{