mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-08-17 01:10:28 +03:00
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:
parent
084fad2aca
commit
466000e05f
Notes:
sideshowbarker
2024-07-17 04:59:02 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/466000e05f Pull-request: https://github.com/SerenityOS/serenity/pull/15841
@ -67,7 +67,7 @@ if gcc_path:
|
|||||||
continue
|
continue
|
||||||
serenity_flags.extend(('-isystem', include_path))
|
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):
|
def is_header_file(filename):
|
||||||
|
Loading…
Reference in New Issue
Block a user