mirror of
https://github.com/ninja-build/ninja.git
synced 2026-06-30 19:58:23 +00:00
fixup! fixup! fixup! Fix spurious rebuilds for phony targets with validations
This commit is contained in:
@@ -285,8 +285,8 @@ bool DependencyScan::RecomputeOutputDirty(const Edge* edge,
|
||||
if (edge->is_phony()) {
|
||||
// Phony edges don't write any output. Outputs are only dirty if
|
||||
// there are no inputs or validations and we're missing the output.
|
||||
// If a phony target has inputs or validations, they are used for dirty
|
||||
// calculation instead of this fallback.
|
||||
// If a phony target has inputs or validations, or the output exists,
|
||||
// they are used for dirty calculation instead of this fallback.
|
||||
if (edge->inputs_.empty() && edge->validations_.empty() &&
|
||||
!output->exists()) {
|
||||
explanations_.Record(
|
||||
|
||||
Reference in New Issue
Block a user