From 8ef0f8058854b2ef55d2d42bbe84487a9aadae12 Mon Sep 17 00:00:00 2001 From: Ralph Giles Date: Mon, 25 Sep 2017 15:58:41 -0700 Subject: [PATCH] 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. --- .ycm_extra_conf.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .ycm_extra_conf.py diff --git a/.ycm_extra_conf.py b/.ycm_extra_conf.py new file mode 100644 index 0000000..f4e30e8 --- /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' + ], + } -- 2.7.4