commit | ecff5ddc84467af458aae613b510aa68330ae9f4 | [log] [tgz] |
---|---|---|
author | Sim Sun <simsun@fb.com> | Wed Jun 21 13:58:24 2023 -0700 |
committer | Sim Sun <simsun@fb.com> | Wed Jun 21 14:08:38 2023 -0700 |
tree | 6249c45036afb6cb7f9d56ff34537f5a87186fd0 | |
parent | f87641a7eaa40c57c5d1033a9082a178e99b99e1 [diff] |
c2a: Support customizing rustc The current cargo2android.py doesn't work well w/ `--cargo_bin`. It would use the full path rustc(/<HOME>/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin/rustc) instead of basename(`rustc`). The `RUSTC_PAT` and `RUSTC_VV_CMD_ARGS` regex doesn't match the full path. This CL uses `(.*\/)?` to match the path if it exists. Change-Id: If5e4060410c1cd45ad6c9612ebe856552aa14d08