From f58b06adde43aa952d0f14a60d390b6e1b50f0e4 Mon Sep 17 00:00:00 2001 From: Jamie Liu Date: Tue, 3 Dec 2013 00:43:42 -0800 Subject: [PATCH] Add -include to INCLUDE_FLAGS The -include flag forces the inclusion of a single file, and is used by (at least) the Linux kernel's build system. --- python/ycm/completers/cpp/flags.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/ycm/completers/cpp/flags.py b/python/ycm/completers/cpp/flags.py index 5c1cdde4..cbf72fa6 100644 --- a/python/ycm/completers/cpp/flags.py +++ b/python/ycm/completers/cpp/flags.py @@ -28,7 +28,8 @@ NO_EXTRA_CONF_FILENAME_MESSAGE = ( 'No {0} file detected, so no compile flags ' 'DOCS *NOW*, DON\'T file a bug report.' ).format( extra_conf_store.YCM_EXTRA_CONF_FILENAME ) -INCLUDE_FLAGS = [ '-isystem', '-I', '-iquote', '--sysroot=', '-isysroot' ] +INCLUDE_FLAGS = [ '-isystem', '-I', '-iquote', '--sysroot=', '-isysroot', + '-include' ] class Flags( object ): """Keeps track of the flags necessary to compile a file.