diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2020-12-11 20:53:32 +0300 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-12-14 09:30:44 +0200 |
commit | ca6a61f432f3ff0257e868bed36a58540623ab49 (patch) | |
tree | e3652b0376b9a6235aec6c32b5d9bd410e0507e5 /libbuild2/cc/compile-rule.cxx | |
parent | 4e8e690640c1dc9ecc78edce1c2e11c28850bfa2 (diff) |
Fix bug in create_new_target_locked()
Diffstat (limited to 'libbuild2/cc/compile-rule.cxx')
-rw-r--r-- | libbuild2/cc/compile-rule.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/cc/compile-rule.cxx b/libbuild2/cc/compile-rule.cxx index a11b7ab..b96c39d 100644 --- a/libbuild2/cc/compile-rule.cxx +++ b/libbuild2/cc/compile-rule.cxx @@ -6051,7 +6051,7 @@ namespace build2 // Note that this is racy and someone might have created this target // while we were preparing the prerequisite list. // - if (p.second.owns_lock ()) + if (p.second) { bt.prerequisites (move (ps)); @@ -6129,7 +6129,7 @@ namespace build2 // Note that this is racy and someone might have created this target // while we were preparing the prerequisite list. // - if (p.second.owns_lock ()) + if (p.second) bt.prerequisites (move (ps)); return bt; |