diff --git a/cc/library.go b/cc/library.go index 9a2b02e0c..72647371b 100644 --- a/cc/library.go +++ b/cc/library.go @@ -403,8 +403,8 @@ func (f *flagExporter) addExportedGeneratedHeaders(headers ...android.Path) { func (f *flagExporter) setProvider(ctx android.ModuleContext) { ctx.SetProvider(FlagExporterInfoProvider, FlagExporterInfo{ - IncludeDirs: f.dirs, - SystemIncludeDirs: f.systemDirs, + IncludeDirs: android.FirstUniquePaths(f.dirs), + SystemIncludeDirs: android.FirstUniquePaths(f.systemDirs), Flags: f.flags, Deps: f.deps, GeneratedHeaders: f.headers,