Refresh Ninja cache files on regeneration.

pull/9099/head
Jussi Pakkanen 3 years ago
parent 59d4f771d2
commit f0b16e4e83
  1. 3
      mesonbuild/backend/ninjabackend.py

@ -567,6 +567,9 @@ class NinjaBackend(backends.Backend):
# fully created.
os.replace(tempfilename, outfilename)
mlog.cmd_ci_include(outfilename) # For CI debugging
# 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'])
self.generate_compdb()
# http://clang.llvm.org/docs/JSONCompilationDatabase.html

Loading…
Cancel
Save