From 466000e05f9d908b609ccf84c7c431066ae25d12 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sat, 29 Oct 2022 12:16:12 +0200 Subject: [PATCH] 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. --- .ycm_extra_conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ycm_extra_conf.py b/.ycm_extra_conf.py index ce6388b7fb6..f09750a62c3 100644 --- a/.ycm_extra_conf.py +++ b/.ycm_extra_conf.py @@ -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):