Delete old outputs that are no longer in the Ninja file.

This commit is contained in:
Jussi Pakkanen 2021-08-23 22:12:31 +03:00
parent b791b47c3b
commit e83ab50c06
1 changed files with 1 additions and 0 deletions

View File

@ -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