diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-09-16 15:10:28 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-09-16 15:10:28 +0200 |
commit | 785c6c6f0aefd54cd883230ba66f34f788c8a248 (patch) | |
tree | 0a0af0aad6ae85ac50bca9413e6e43280ef86869 | |
parent | 2388b2fc468e420372f4b15085f04f2203a44222 (diff) |
Fix diagnostics corner case in perform_clean_extra()
-rw-r--r-- | libbuild2/algorithm.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libbuild2/algorithm.cxx b/libbuild2/algorithm.cxx index 52e0926..0370626 100644 --- a/libbuild2/algorithm.cxx +++ b/libbuild2/algorithm.cxx @@ -2470,11 +2470,7 @@ namespace build2 // ft.mtime (timestamp_nonexistent); - // Clean prerequisites. - // - tr |= reverse_execute_prerequisites (a, ft); - - // Factor the result of removing the extra files into the target state. + // We factor the result of removing the extra files into the target state. // While strictly speaking removing them doesn't change the target state, // if we don't do this, then we may end up removing the file but still // saying that everything is clean (e.g., if someone removes the target @@ -2494,6 +2490,10 @@ namespace build2 } } + // Clean prerequisites. + // + tr |= reverse_execute_prerequisites (a, ft); + tr |= er; return tr; } |