From ce177a4b12f2fef490683e53ccc9ee8f4d3e0bd6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 12 Jun 2017 08:33:28 +0200 Subject: Add workaround for Clang module import during preprocessing --- build2/algorithm.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'build2/algorithm.cxx') diff --git a/build2/algorithm.cxx b/build2/algorithm.cxx index 0dca9cc..658a6cd 100644 --- a/build2/algorithm.cxx +++ b/build2/algorithm.cxx @@ -126,12 +126,12 @@ namespace build2 // Wait for the count to drop below busy if someone is already working // on this target. // - // We also unlock the phase for the duration of the wait. Why? Consider - // this scenario: we are trying to match a dir{} target whose buildfile - // still needs to be loaded. Let's say someone else started the match - // before us. So we wait for their completion and they wait to switch - // the phase to load. Which would result in a deadlock unless we release - // the phase. + // We also unlock the phase for the duration of the wait. Why? + // Consider this scenario: we are trying to match a dir{} target whose + // buildfile still needs to be loaded. Let's say someone else started + // the match before us. So we wait for their completion and they wait + // to switch the phase to load. Which would result in a deadlock + // unless we release the phase. // if (e >= busy) { -- cgit v1.1