Merge "Fix syntax error in bazel_handler.go." am: b809bcf331

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1664502

Change-Id: Ia11a35537eadb021f9f00d0112e3c7f9a75c55fd
This commit is contained in:
Rupert Shuttleworth
2021-04-06 21:07:34 +00:00
committed by Automerger Merge Worker

View File

@@ -681,7 +681,7 @@ func (c *bazelSingleton) GenerateBuildActions(ctx SingletonContext) {
// Register bazel-owned build statements (obtained from the aquery invocation). // Register bazel-owned build statements (obtained from the aquery invocation).
for index, buildStatement := range ctx.Config().BazelContext.BuildStatementsToRegister() { for index, buildStatement := range ctx.Config().BazelContext.BuildStatementsToRegister() {
if len(buildStatement.Command) < 1 { if len(buildStatement.Command) < 1 {
panic(fmt.Sprintf("unhandled build statement: %s", buildStatement)) panic(fmt.Sprintf("unhandled build statement: %v", buildStatement))
} }
rule := NewRuleBuilder(pctx, ctx) rule := NewRuleBuilder(pctx, ctx)
cmd := rule.Command() cmd := rule.Command()