summaryrefslogtreecommitdiff
path: root/apex/builder.go
diff options
context:
space:
mode:
author Ramy Medhat <abdelaal@google.com> 2020-09-03 01:29:49 -0400
committer Ramy Medhat <abdelaal@google.com> 2020-09-03 01:29:49 -0400
commit16f23a4038d9156286a06ba757eaa9c1c86e562a (patch)
treeccca17aedf7f275b1fac669b8103c215987e500d /apex/builder.go
parent4d947f0ea84f80939348d1f792730b38ca5720c5 (diff)
Check UseRBE is set before replacing any template with the RE version.
Test: presubmit Change-Id: I6df58b4e700f0d231367af2710672d731d20a736
Diffstat (limited to 'apex/builder.go')
-rw-r--r--apex/builder.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/apex/builder.go b/apex/builder.go
index 0a1ec3eb3..27de00e5c 100644
--- a/apex/builder.go
+++ b/apex/builder.go
@@ -648,7 +648,7 @@ func (a *apexBundle) buildUnflattenedApex(ctx android.ModuleContext) {
a.container_certificate_file,
a.container_private_key_file,
}
- if ctx.Config().IsEnvTrue("RBE_SIGNAPK") {
+ if ctx.Config().UseRBE() && ctx.Config().IsEnvTrue("RBE_SIGNAPK") {
rule = java.SignapkRE
args["implicits"] = strings.Join(implicits.Strings(), ",")
args["outCommaList"] = a.outputFile.String()