aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-09-16 15:10:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-09-16 15:10:28 +0200
commit785c6c6f0aefd54cd883230ba66f34f788c8a248 (patch)
tree0a0af0aad6ae85ac50bca9413e6e43280ef86869
parent2388b2fc468e420372f4b15085f04f2203a44222 (diff)
Fix diagnostics corner case in perform_clean_extra()
-rw-r--r--libbuild2/algorithm.cxx10
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;
}