Make glob output include product name
glob pattern could vary, depending on device configuration, but it uses the same glob output path for now. It makes unnecessary soong reevaluation due to the previous result is always overwritten whenever the target is changed. So make it product specific to avoid this. Bug: 294058160 Test: lunch a && m nothing && lunch b && m nothing && lunch a && m nothing and then check if there is no glob work. (a and b has different glob pattern due to RRO configuration or something) Change-Id: I7b6b7a326de681b046a55dbdb34d812cace510e6
This commit is contained in:
parent
a9778d576b
commit
03e50cb4d7
1 changed files with 6 additions and 2 deletions
|
@ -195,9 +195,13 @@ func (pb PrimaryBuilderFactory) primaryBuilderInvocation() bootstrap.PrimaryBuil
|
|||
|
||||
var allArgs []string
|
||||
allArgs = append(allArgs, pb.specificArgs...)
|
||||
globPathName, ok := pb.config.TargetProductOrErr()
|
||||
if ok != nil {
|
||||
globPathName = pb.name
|
||||
}
|
||||
allArgs = append(allArgs,
|
||||
"--globListDir", pb.name,
|
||||
"--globFile", pb.config.NamedGlobFile(pb.name))
|
||||
"--globListDir", globPathName,
|
||||
"--globFile", pb.config.NamedGlobFile(globPathName))
|
||||
|
||||
allArgs = append(allArgs, commonArgs...)
|
||||
allArgs = append(allArgs, environmentArgs(pb.config, pb.name)...)
|
||||
|
|
Loading…
Reference in a new issue