Check UseRBE is set before replacing any template with the RE version.
Test: presubmit Change-Id: I6df58b4e700f0d231367af2710672d731d20a736
This commit is contained in:
@@ -1483,7 +1483,7 @@ func (j *Module) compile(ctx android.ModuleContext, aaptSrcJar android.Path) {
|
||||
args := map[string]string{
|
||||
"jarArgs": "-P META-INF/services/ " + strings.Join(proptools.NinjaAndShellEscapeList(zipargs), " "),
|
||||
}
|
||||
if ctx.Config().IsEnvTrue("RBE_ZIP") {
|
||||
if ctx.Config().UseRBE() && ctx.Config().IsEnvTrue("RBE_ZIP") {
|
||||
rule = zipRE
|
||||
args["implicits"] = strings.Join(services.Strings(), ",")
|
||||
}
|
||||
|
Reference in New Issue
Block a user