Fix repeated ccCmd dependencies on object files

ccCmd was being added as a dependency each time through the object
file loop, tripling the size of the build.ninja file.  Create a
new slice for dependencies on each object file.

Change-Id: Id768d8ea6e5300c15f0f1a5fac5fcbdfdf5e6b0a
This commit is contained in:
Colin Cross 2015-05-12 17:14:57 -07:00 committed by Colin Cross
parent 7d42bdad16
commit d81496084b
1 changed files with 2 additions and 2 deletions

View File

@ -188,13 +188,13 @@ func TransformSourceToObj(ctx common.AndroidModuleContext, subdir string, srcFil
ccCmd = gccCmd(flags.toolchain, ccCmd)
}
deps = append([]string{ccCmd}, deps...)
objDeps := append([]string{ccCmd}, deps...)
ctx.Build(pctx, blueprint.BuildParams{
Rule: cc,
Outputs: []string{objFile},
Inputs: []string{srcFile},
Implicits: deps,
Implicits: objDeps,
Args: map[string]string{
"cFlags": moduleCflags,
"ccCmd": ccCmd,