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-23 22:12:31 +0300
commitb47a5293e9fd34f161c65e533c27ef06ccc47a4e (patch)
treebc33daeff635535014b9c75cc23fe4dadae5aa7c
parentb3c240989bde292e561b7f905f008d9da4aa6668 (diff)
downloadmeson-b47a5293e9fd34f161c65e533c27ef06ccc47a4e.zip
meson-b47a5293e9fd34f161c65e533c27ef06ccc47a4e.tar.gz
meson-b47a5293e9fd34f161c65e533c27ef06ccc47a4e.tar.bz2
Delete old outputs that are no longer in the Ninja file.cleandead
-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