aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cc/cc.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cc/cc.go b/cc/cc.go
index 4cdcdf62..6be5b646 100644
--- a/cc/cc.go
+++ b/cc/cc.go
@@ -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) {