Skip to content

Commit

Permalink
Refresh Ninja cache files on regeneration.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpakkane committed Aug 15, 2021
1 parent 59d4f77 commit f0b16e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mesonbuild/backend/ninjabackend.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,9 @@ def generate(self):
# 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
Expand Down

0 comments on commit f0b16e4

Please sign in to comment.