aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2021-08-23 22:12:31 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2021-08-28 12:42:58 +0300
commite83ab50c06a43ff4892d23764ab963b6d24a3f3b (patch)
tree59195e5ac39b28345681799bd5f8eb3c93c5455b
parentb791b47c3b3f93d0fd3e0adbc491b8ce967be816 (diff)
downloadmeson-e83ab50c06a43ff4892d23764ab963b6d24a3f3b.zip
meson-e83ab50c06a43ff4892d23764ab963b6d24a3f3b.tar.gz
meson-e83ab50c06a43ff4892d23764ab963b6d24a3f3b.tar.bz2
Delete old outputs that are no longer in the Ninja file.
-rw-r--r--mesonbuild/backend/ninjabackend.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index 9707640..dc5b5df 100644
--- a/mesonbuild/backend/ninjabackend.py
+++ b/mesonbuild/backend/ninjabackend.py
@@ -572,6 +572,7 @@ class NinjaBackend(backends.Backend):
# Refresh Ninja's caches. https://github.com/ninja-build/ninja/pull/1685
if mesonlib.version_compare(self.ninja_version, '>=1.10.2') and os.path.exists('.ninja_deps'):
subprocess.call(self.ninja_command + ['-t', 'restat'])
+ subprocess.call(self.ninja_command + ['-t', 'cleandead'])
self.generate_compdb()
# http://clang.llvm.org/docs/JSONCompilationDatabase.html