diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2022-10-29 12:16:12 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-10-30 23:57:25 +0100 |
commit | 466000e05f9d908b609ccf84c7c431066ae25d12 (patch) | |
tree | 2bc50c4a837493eeeaf56751828380b503cae444 /.ycm_extra_conf.py | |
parent | 084fad2aca6aa10f7a760790cebfc84f445e56fb (diff) | |
download | serenity-466000e05f9d908b609ccf84c7c431066ae25d12.zip |
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.
Diffstat (limited to '.ycm_extra_conf.py')
-rw-r--r-- | .ycm_extra_conf.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.ycm_extra_conf.py b/.ycm_extra_conf.py index ce6388b7fb..f09750a62c 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): |