Fix LOCAL_EXPORT_C_INCLUDE_DIRS processing

In order to strip the -I from the beginning of each flag, the androidmk
functionality expected every flag to be distinct. The existing
functionality was combining them with spaces if a module exported more
than one include directory at a time.

Change-Id: Ief5e22061c58f3d987557e938bae880509ffb121
This commit is contained in:
Dan Willemsen 2016-07-13 10:45:01 -07:00
parent 75ab80882e
commit e6c7f18364

View file

@ -1490,7 +1490,9 @@ type flagExporter struct {
func (f *flagExporter) exportIncludes(ctx ModuleContext, inc string) {
includeDirs := android.PathsForModuleSrc(ctx, f.Properties.Export_include_dirs)
f.flags = append(f.flags, android.JoinWithPrefix(includeDirs.Strings(), inc))
for _, dir := range includeDirs.Strings() {
f.flags = append(f.flags, inc + dir)
}
}
func (f *flagExporter) reexportFlags(flags []string) {