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.
This commit is contained in:
Jamie Liu 2013-12-03 00:43:42 -08:00
parent aeb2c5c227
commit f58b06adde

View File

@ -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.