Skip to content

Ninja: Do not recompact deps log in regeneration during a build

Since !3316 (merged) we recompact the ninja deps log during regeneration. That does not make sense during a build, so skip it if we are regenerating during a build.

This problem went unnoticed previously because on non-Windows platforms the deps log is just overwritten again by the outer build. On Windows platforms, recompaction during the build fails, but we did not actually try to do that until !5555 (merged).

Fixes: #21916 (closed)
Backport: release

Merge request reports