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:
parent
7d42bdad16
commit
d81496084b
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue