diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-03-29 09:08:48 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-03-29 09:09:50 +0200 |
commit | df15d17fa54257019ed92fe65d3a4a200a5f6027 (patch) | |
tree | 3b0df308271a2d7cdb85be18988652ea6d288637 /bin | |
parent | 8fac348a5a3ab535fa12a9da2a6d4fbee4ecca8d (diff) |
gbuild-to-ide: fix missing include in clang json database
This wasn't noticeable in modules that use '#include "..."' for files in
the same directory, but does make a difference e.g. in sw.
With this, the include list in the database matches what gbuild in fact
uses.
Change-Id: I564c70d069fae41ea67ae7e57a188e99fa2ef861
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/gbuild-to-ide | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/gbuild-to-ide b/bin/gbuild-to-ide index 3c40b551fd24..f6835bd53a0e 100755 --- a/bin/gbuild-to-ide +++ b/bin/gbuild-to-ide @@ -448,6 +448,11 @@ class VimIntegrationGenerator(IdeIntegrationGenerator): if value is not None: command += '=' command += value + + # The directory of the file is missing from lib's include list, as that + # one is not the same for all source files in the lib. + command += ' -I' + os.path.dirname(file) + for include in lib.include: command += ' -I' command += include |