From 90ad646d252b8354e329d2e1b048ee56499b6ccb Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 3 Dec 2020 11:41:55 +0200 Subject: Fix bug in previous commit --- libbuild2/cc/common.cxx | 4 ++-- 1 file 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) { -- cgit v1.1