diff options
author | Ralph Giles <giles@thaumas.net> | 2017-09-25 15:58:41 -0700 |
---|---|---|
committer | Ralph Giles <giles@thaumas.net> | 2017-09-25 15:58:41 -0700 |
commit | 8ef0f8058854b2ef55d2d42bbe84487a9aadae12 (patch) | |
tree | 38885b04e4b59c1f7c7b361aa08e2d660f2dff74 | |
parent | 8a8f8589e19c5016f6548d877a8fda231fce4f93 (diff) | |
download | libvorbis-git-8ef0f8058854b2ef55d2d42bbe84487a9aadae12.tar.gz |
Add build flags for YouCompleteMe.
Add a .ycm_extra.conf.py script to return the same CFLAGS
we pass for `make debug`. These are passed to libclang
so symbol lookup works correctly.
Note this doesn't pick up changes to the build config,
including non-default locations for the ogg headers,
but it's better than nothing.
-rw-r--r-- | .ycm_extra_conf.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.ycm_extra_conf.py b/.ycm_extra_conf.py new file mode 100644 index 00000000..f4e30e89 --- /dev/null +++ b/.ycm_extra_conf.py @@ -0,0 +1,8 @@ +def FlagsForFile(filename, **kwargs): + return { + 'flags': [ + '-x', 'c', + '-g', '-Wall', '-Wextra', + '-D_REENTRANT', '-D__NO_MATH_INLINES', '-fsigned-char' + ], + } |