cc: Use local_include_dirs before include_dirs
Prefer local headers over remote headers Change-Id: Ic50104c5f2cfdd96cd749d35c52cd13706ac6367
This commit is contained in:
parent
e9862da7dd
commit
1e898b9e04
1 changed files with 2 additions and 2 deletions
4
cc/cc.go
4
cc/cc.go
|
@ -461,8 +461,8 @@ func (c *CCBase) collectFlags(ctx common.AndroidModuleContext, toolchain Toolcha
|
|||
rootIncludeDirs := pathtools.PrefixPaths(c.Properties.Include_dirs, ctx.AConfig().SrcDir())
|
||||
localIncludeDirs := pathtools.PrefixPaths(c.Properties.Local_include_dirs, common.ModuleSrcDir(ctx))
|
||||
flags.GlobalFlags = append(flags.GlobalFlags,
|
||||
includeDirsToFlags(rootIncludeDirs),
|
||||
includeDirsToFlags(localIncludeDirs))
|
||||
includeDirsToFlags(localIncludeDirs),
|
||||
includeDirsToFlags(rootIncludeDirs))
|
||||
|
||||
rootIncludeFiles := pathtools.PrefixPaths(c.Properties.Include_files, ctx.AConfig().SrcDir())
|
||||
localIncludeFiles := pathtools.PrefixPaths(c.Properties.Local_include_files, common.ModuleSrcDir(ctx))
|
||||
|
|
Loading…
Reference in a new issue