summaryrefslogtreecommitdiff
path: root/rust/coverage.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2021-12-08 15:42:22 -0800
committer Colin Cross <ccross@android.com> 2021-12-08 15:42:22 -0800
commitc53c37fad18dbd9fa4935e00605ea76273a7ace8 (patch)
tree23f272c504921d2e4e170a4e83fe31c6b0260cbc /rust/coverage.go
parentce69757379f169b5d5be3ea323610eda3f8993ab (diff)
Don't panic when DevicePrimaryArchType is called in a host only build
Check the length of c.Targets[Android] before getting the first element, and return Common if the length is set. Fixes a panic when a tradefed_binary is defined in a host-only build. Test: aosp-build-tools build Change-Id: I89f1dd13aa1aff5eb7d39e0b66eeedcb7d930fa0
Diffstat (limited to 'rust/coverage.go')
0 files changed, 0 insertions, 0 deletions