Move compile_commands.json to build directory

This commit is contained in:
Kovid Goyal
2023-01-26 13:43:12 +05:30
parent 084671b26e
commit b408abe304
4 changed files with 4 additions and 5 deletions

View File

@@ -667,7 +667,7 @@ class CompilationDatabase:
def __enter__(self) -> 'CompilationDatabase':
self.all_keys: Set[CompileKey] = set()
self.dbpath = os.path.abspath('compile_commands.json')
self.dbpath = os.path.abspath(os.path.join('build', 'compile_commands.json'))
self.linkdbpath = os.path.join(os.path.dirname(self.dbpath), 'link_commands.json')
try:
with open(self.dbpath) as f: