Meta: Make YCM work when the current dir is not the root of the tree

Previously we'd incorrectly use a relative path for the compilation
database.
This commit is contained in:
Gunnar Beutner 2022-10-29 12:16:12 +02:00 committed by Andreas Kling
parent 084fad2aca
commit 466000e05f

View File

@ -67,7 +67,7 @@ if gcc_path:
continue
serenity_flags.extend(('-isystem', include_path))
database = ycm_core.CompilationDatabase(f'Build/{serenity_arch}')
database = ycm_core.CompilationDatabase(os.path.join(DIR_OF_THIS_SCRIPT, f'Build/{serenity_arch}'))
def is_header_file(filename):