aboutsummaryrefslogtreecommitdiffstats
path: root/genrule
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2017-04-19 14:23:26 -0700
committerColin Cross <ccross@android.com>2017-04-19 14:27:53 -0700
commit54c5dd5238247c237ded644ed21c22c67cbd7da8 (patch)
tree302dc48fadaa04dc5e1271add6feee5a496048a0 /genrule
parentd87708ed4b20a3306f4ebb7ac0e25d73b9249b88 (diff)
downloadbuild_soong-54c5dd5238247c237ded644ed21c22c67cbd7da8.tar.gz
build_soong-54c5dd5238247c237ded644ed21c22c67cbd7da8.tar.bz2
build_soong-54c5dd5238247c237ded644ed21c22c67cbd7da8.zip
Exit early on genrule command parsing failure
cmd may be empty if android.Expand fails, and continuing results in a panic. Return immediately. Test: m -j checkbuild Change-Id: Ibf4d57ce048db9f7f16ce118ed9e9ecea5a6551c
Diffstat (limited to 'genrule')
-rw-r--r--genrule/genrule.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/genrule/genrule.go b/genrule/genrule.go
index ee4c5034..cb741b30 100644
--- a/genrule/genrule.go
+++ b/genrule/genrule.go
@@ -198,6 +198,7 @@ func (g *generator) GenerateAndroidBuildActions(ctx android.ModuleContext) {
if err != nil {
ctx.PropertyErrorf("cmd", "%s", err.Error())
+ return
}
ruleParams := blueprint.RuleParams{