aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-12-03 11:41:55 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-12-03 11:41:55 +0200
commit90ad646d252b8354e329d2e1b048ee56499b6ccb (patch)
tree7f88bef17341acb62e7556e2bcf476454784d0ba /libbuild2/cc
parente85e618a1b918f7279133eb1f446c1af871f5dd2 (diff)
Fix bug in previous commit
Diffstat (limited to 'libbuild2/cc')
-rw-r--r--libbuild2/cc/common.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/cc/common.cxx b/libbuild2/cc/common.cxx
index a1bee8c..c7ca7bc 100644
--- a/libbuild2/cc/common.cxx
+++ b/libbuild2/cc/common.cxx
@@ -855,8 +855,8 @@ namespace build2
if (s != nullptr) lt->s = s;
}
- target_lock al (a != nullptr ? lock (act, *a, false) : target_lock ());
- target_lock sl (s != nullptr ? lock (act, *s, false) : target_lock ());
+ target_lock al (a != nullptr ? lock (act, *a, true) : target_lock ());
+ target_lock sl (s != nullptr ? lock (act, *s, true) : target_lock ());
if (al && al.offset == target::offset_matched)
{