summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Giles <giles@thaumas.net>2017-09-25 15:58:41 -0700
committerRalph Giles <giles@thaumas.net>2017-09-25 15:58:41 -0700
commit8ef0f8058854b2ef55d2d42bbe84487a9aadae12 (patch)
tree38885b04e4b59c1f7c7b361aa08e2d660f2dff74
parent8a8f8589e19c5016f6548d877a8fda231fce4f93 (diff)
downloadlibvorbis-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.py8
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'
+ ],
+ }