Support building all variants. am: 04f52bafb3 am: a67390c7f5 am: ccadfb994b

Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/which/+/1356136

Change-Id: I23672447d9cee2cfd5e0497f1006a01331b272f3