aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc/init.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/cc/init.cxx')
-rw-r--r--libbuild2/cc/init.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbuild2/cc/init.cxx b/libbuild2/cc/init.cxx
index d691bc5..64c70f8 100644
--- a/libbuild2/cc/init.cxx
+++ b/libbuild2/cc/init.cxx
@@ -764,7 +764,7 @@ namespace build2
perform_update_id,
context::operation_callback {&compiledb_pre, &compiledb_post});
- if (ctx.load_generation > 1)
+ if (!ctx.phase_mutex.unlocked ()) // Interrupting load.
{
action a (ctx.current_action ());