diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-12-12 11:30:27 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-12-12 11:30:27 +0200 |
commit | d27390e9935c94938af9e7068557d6f6ef9b07a9 (patch) | |
tree | 2c27fc4e49e51d90ea246607160d8b2790973693 /libbuild2/cc | |
parent | 270041729e2d2f67d15e419e314cda4eba9821f6 (diff) |
Increment load_generation between operations in batch
Diffstat (limited to 'libbuild2/cc')
-rw-r--r-- | libbuild2/cc/init.cxx | 2 |
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 ()); |