Support building all variants. am: 04f52bafb3

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

Change-Id: I57d76c5324430f9e82045ee910def3402335da7f