Skip to content

Commit

Permalink
Add armv7-linux-androideabi tier 2 triple (#1362)
Browse files Browse the repository at this point in the history
* Add armv7-linux-androideabi tier 2 triple

From https://doc.rust-lang.org/rustc/platform-support.html, required for
use with raze.

* Repin
  • Loading branch information
keith authored May 27, 2022
1 parent 0265c29 commit 1b451c3
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 21 deletions.
4 changes: 2 additions & 2 deletions docs/crate_universe.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ CARGO_BAZEL_REPIN=1 bazel sync --only=crate_index
| <a id="crates_repository-rust_toolchain_rustc_template"></a>rust_toolchain_rustc_template | The template to use for finding the host <code>rustc</code> binary. <code>{version}</code> (eg. '1.53.0'), <code>{triple}</code> (eg. 'x86_64-unknown-linux-gnu'), <code>{arch}</code> (eg. 'aarch64'), <code>{vendor}</code> (eg. 'unknown'), <code>{system}</code> (eg. 'darwin'), <code>{cfg}</code> (eg. 'exec'), and <code>{tool}</code> (eg. 'cargo.exe') will be replaced in the string if present. | String | optional | "@rust_{system}_{arch}//:bin/{tool}" |
| <a id="crates_repository-rust_version"></a>rust_version | The version of Rust the currently registered toolchain is using. Eg. <code>1.56.0</code>, or <code>nightly-2021-09-08</code> | String | optional | "1.61.0" |
| <a id="crates_repository-splicing_config"></a>splicing_config | The configuration flags to use for splicing Cargo maniests. Use <code>//crate_universe:defs.bzl\%rsplicing_config</code> to generate the value for this field. If unset, the defaults defined there will be used. | String | optional | "" |
| <a id="crates_repository-supported_platform_triples"></a>supported_platform_triples | A set of all platform triples to consider when generating dependencies. | List of strings | optional | ["i686-apple-darwin", "i686-pc-windows-msvc", "i686-unknown-linux-gnu", "x86_64-apple-darwin", "x86_64-pc-windows-msvc", "x86_64-unknown-linux-gnu", "aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "arm-unknown-linux-gnueabi", "armv7-unknown-linux-gnueabi", "i686-linux-android", "i686-unknown-freebsd", "powerpc-unknown-linux-gnu", "s390x-unknown-linux-gnu", "wasm32-unknown-unknown", "wasm32-wasi", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-unknown-freebsd", "riscv32imc-unknown-none-elf"] |
| <a id="crates_repository-supported_platform_triples"></a>supported_platform_triples | A set of all platform triples to consider when generating dependencies. | List of strings | optional | ["i686-apple-darwin", "i686-pc-windows-msvc", "i686-unknown-linux-gnu", "x86_64-apple-darwin", "x86_64-pc-windows-msvc", "x86_64-unknown-linux-gnu", "aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "arm-unknown-linux-gnueabi", "armv7-unknown-linux-gnueabi", "armv7-linux-androideabi", "i686-linux-android", "i686-unknown-freebsd", "powerpc-unknown-linux-gnu", "s390x-unknown-linux-gnu", "wasm32-unknown-unknown", "wasm32-wasi", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-unknown-freebsd", "riscv32imc-unknown-none-elf"] |


<a id="#crates_vendor"></a>
Expand Down Expand Up @@ -357,7 +357,7 @@ bazel run //3rdparty:crates_vendor
| <a id="crates_vendor-packages"></a>packages | A set of crates (packages) specifications to depend on. See [crate.spec](#crate.spec). | <a href="https://bazel.build/docs/skylark/lib/dict.html">Dictionary: String -> String</a> | optional | {} |
| <a id="crates_vendor-repository_name"></a>repository_name | The name of the repository to generate for <code>remote</code> vendor modes. If unset, the label name will be used | String | optional | "" |
| <a id="crates_vendor-splicing_config"></a>splicing_config | The configuration flags to use for splicing Cargo maniests. Use <code>//crate_universe:defs.bzl\%rsplicing_config</code> to generate the value for this field. If unset, the defaults defined there will be used. | String | optional | "" |
| <a id="crates_vendor-supported_platform_triples"></a>supported_platform_triples | A set of all platform triples to consider when generating dependencies. | List of strings | optional | ["i686-apple-darwin", "i686-pc-windows-msvc", "i686-unknown-linux-gnu", "x86_64-apple-darwin", "x86_64-pc-windows-msvc", "x86_64-unknown-linux-gnu", "aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "arm-unknown-linux-gnueabi", "armv7-unknown-linux-gnueabi", "i686-linux-android", "i686-unknown-freebsd", "powerpc-unknown-linux-gnu", "s390x-unknown-linux-gnu", "wasm32-unknown-unknown", "wasm32-wasi", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-unknown-freebsd", "riscv32imc-unknown-none-elf"] |
| <a id="crates_vendor-supported_platform_triples"></a>supported_platform_triples | A set of all platform triples to consider when generating dependencies. | List of strings | optional | ["i686-apple-darwin", "i686-pc-windows-msvc", "i686-unknown-linux-gnu", "x86_64-apple-darwin", "x86_64-pc-windows-msvc", "x86_64-unknown-linux-gnu", "aarch64-apple-darwin", "aarch64-apple-ios", "aarch64-apple-ios-sim", "aarch64-linux-android", "aarch64-unknown-linux-gnu", "arm-unknown-linux-gnueabi", "armv7-unknown-linux-gnueabi", "armv7-linux-androideabi", "i686-linux-android", "i686-unknown-freebsd", "powerpc-unknown-linux-gnu", "s390x-unknown-linux-gnu", "wasm32-unknown-unknown", "wasm32-wasi", "x86_64-apple-ios", "x86_64-linux-android", "x86_64-unknown-freebsd", "riscv32imc-unknown-none-elf"] |
| <a id="crates_vendor-vendor_path"></a>vendor_path | The path to a directory to write files into. Absolute paths will be treated as relative to the workspace root | String | optional | "crates" |


Expand Down
15 changes: 8 additions & 7 deletions examples/crate_universe/cargo_aliases/Cargo.Bazel.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"checksum": "bffc2bdf02e641c6ef454734fa4def3bc6087685845c1f2a8062f9f09828c791",
"checksum": "0af67791b870efd229f1d2dad1266a7d8b74fbcd9f5564f0264751f26a40e37f",
"crates": {
"aho-corasick 0.7.18": {
"name": "aho-corasick",
Expand Down Expand Up @@ -464,7 +464,7 @@
"deps": {
"common": [
{
"id": "os_str_bytes 6.0.1",
"id": "os_str_bytes 6.1.0",
"target": "os_str_bytes"
}
],
Expand Down Expand Up @@ -1307,13 +1307,13 @@
},
"license": "MIT"
},
"os_str_bytes 6.0.1": {
"os_str_bytes 6.1.0": {
"name": "os_str_bytes",
"version": "6.0.1",
"version": "6.1.0",
"repository": {
"Http": {
"url": "https://crates.io/api/v1/crates/os_str_bytes/6.0.1/download",
"sha256": "029d8d0b2f198229de29dca79676f2738ff952edf3fde542eb8bf94d8c21b435"
"url": "https://crates.io/api/v1/crates/os_str_bytes/6.1.0/download",
"sha256": "21326818e99cfe6ce1e524c2a805c189a99b5ae555a35d19f9a284b427d86afa"
}
},
"targets": [
Expand All @@ -1339,7 +1339,7 @@
"raw_os_str"
],
"edition": "2018",
"version": "6.0.1"
"version": "6.1.0"
},
"license": "MIT OR Apache-2.0"
},
Expand Down Expand Up @@ -2554,6 +2554,7 @@
"aarch64-linux-android",
"aarch64-unknown-linux-gnu",
"arm-unknown-linux-gnueabi",
"armv7-linux-androideabi",
"armv7-unknown-linux-gnueabi",
"i686-apple-darwin",
"i686-linux-android",
Expand Down
5 changes: 4 additions & 1 deletion examples/crate_universe/cargo_workspace/Cargo.Bazel.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"checksum": "e037ba0ff46a2c03d0b19e86a67296e7530468763f3635ab06b0f25301230e77",
"checksum": "35b6169276c60e0d337beb4b3f29520d599e7f03b03963d379909337d3a1bbdc",
"crates": {
"ansi_term 0.12.1": {
"name": "ansi_term",
Expand Down Expand Up @@ -1387,6 +1387,7 @@
"aarch64-linux-android",
"aarch64-unknown-linux-gnu",
"arm-unknown-linux-gnueabi",
"armv7-linux-androideabi",
"armv7-unknown-linux-gnueabi",
"i686-apple-darwin",
"i686-linux-android",
Expand All @@ -1412,6 +1413,7 @@
"aarch64-linux-android",
"aarch64-unknown-linux-gnu",
"arm-unknown-linux-gnueabi",
"armv7-linux-androideabi",
"armv7-unknown-linux-gnueabi",
"i686-apple-darwin",
"i686-linux-android",
Expand Down Expand Up @@ -1444,6 +1446,7 @@
"aarch64-linux-android",
"aarch64-unknown-linux-gnu",
"arm-unknown-linux-gnueabi",
"armv7-linux-androideabi",
"armv7-unknown-linux-gnueabi",
"i686-apple-darwin",
"i686-linux-android",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"checksum": "799e2e9efee060cfe7143c608d6cabb668b55b74374104819e48e5ff662dfce5",
"checksum": "36575ef80dadae9bb45b4e7aa2f7bc7a38e272acf76421f97b2b7b969aa5c52e",
"crates": {
"adler32 1.2.0": {
"name": "adler32",
Expand Down Expand Up @@ -3201,6 +3201,7 @@
"aarch64-linux-android",
"aarch64-unknown-linux-gnu",
"arm-unknown-linux-gnueabi",
"armv7-linux-androideabi",
"armv7-unknown-linux-gnueabi",
"i686-apple-darwin",
"i686-linux-android",
Expand All @@ -3224,6 +3225,7 @@
"aarch64-linux-android",
"aarch64-unknown-linux-gnu",
"arm-unknown-linux-gnueabi",
"armv7-linux-androideabi",
"armv7-unknown-linux-gnueabi",
"i686-apple-darwin",
"i686-linux-android",
Expand Down Expand Up @@ -3252,6 +3254,7 @@
"aarch64-linux-android",
"aarch64-unknown-linux-gnu",
"arm-unknown-linux-gnueabi",
"armv7-linux-androideabi",
"armv7-unknown-linux-gnueabi",
"i686-apple-darwin",
"i686-linux-android",
Expand Down
26 changes: 17 additions & 9 deletions examples/crate_universe/multi_package/Cargo.Bazel.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"checksum": "ea885db356e90ed4eda3af0e0830d2979f71982a599c2c3f1cba23f735a77cbb",
"checksum": "ba369f4ca1f9d8933986d97b8decf6f1efc66d7c5bd52054c6a41d014ef97618",
"crates": {
"aho-corasick 0.7.18": {
"name": "aho-corasick",
Expand Down Expand Up @@ -353,7 +353,7 @@
"target": "async_executor"
},
{
"id": "async-io 1.6.0",
"id": "async-io 1.7.0",
"target": "async_io"
},
{
Expand Down Expand Up @@ -384,13 +384,13 @@
},
"license": "Apache-2.0 OR MIT"
},
"async-io 1.6.0": {
"async-io 1.7.0": {
"name": "async-io",
"version": "1.6.0",
"version": "1.7.0",
"repository": {
"Http": {
"url": "https://crates.io/api/v1/crates/async-io/1.6.0/download",
"sha256": "a811e6a479f2439f0c04038796b5cfb3d2ad56c230e0f2d3f7b04d68cfee607b"
"url": "https://crates.io/api/v1/crates/async-io/1.7.0/download",
"sha256": "e5e18f61464ae81cde0a23e713ae8fd299580c54d697a35820cfd0625b8b0e07"
}
},
"targets": [
Expand Down Expand Up @@ -467,7 +467,7 @@
}
},
"edition": "2018",
"version": "1.6.0"
"version": "1.7.0"
},
"license": "Apache-2.0 OR MIT"
},
Expand Down Expand Up @@ -647,7 +647,7 @@
"selects": {
"cfg(unix)": [
{
"id": "async-io 1.6.0",
"id": "async-io 1.7.0",
"target": "async_io"
},
{
Expand Down Expand Up @@ -792,7 +792,7 @@
"target": "async_global_executor"
},
{
"id": "async-io 1.6.0",
"id": "async-io 1.7.0",
"target": "async_io"
},
{
Expand Down Expand Up @@ -11164,6 +11164,7 @@
"aarch64-linux-android",
"aarch64-unknown-linux-gnu",
"arm-unknown-linux-gnueabi",
"armv7-linux-androideabi",
"armv7-unknown-linux-gnueabi",
"i686-linux-android",
"i686-unknown-freebsd",
Expand All @@ -11190,6 +11191,7 @@
"aarch64-linux-android",
"aarch64-unknown-linux-gnu",
"arm-unknown-linux-gnueabi",
"armv7-linux-androideabi",
"armv7-unknown-linux-gnueabi",
"i686-apple-darwin",
"i686-linux-android",
Expand All @@ -11210,6 +11212,7 @@
"aarch64-linux-android",
"aarch64-unknown-linux-gnu",
"arm-unknown-linux-gnueabi",
"armv7-linux-androideabi",
"armv7-unknown-linux-gnueabi",
"i686-apple-darwin",
"i686-linux-android",
Expand All @@ -11228,6 +11231,7 @@
"aarch64-linux-android",
"aarch64-unknown-linux-gnu",
"arm-unknown-linux-gnueabi",
"armv7-linux-androideabi",
"armv7-unknown-linux-gnueabi",
"i686-linux-android",
"i686-unknown-freebsd",
Expand All @@ -11248,6 +11252,7 @@
"aarch64-linux-android",
"aarch64-unknown-linux-gnu",
"arm-unknown-linux-gnueabi",
"armv7-linux-androideabi",
"armv7-unknown-linux-gnueabi",
"i686-apple-darwin",
"i686-linux-android",
Expand All @@ -11271,6 +11276,7 @@
"aarch64-linux-android",
"aarch64-unknown-linux-gnu",
"arm-unknown-linux-gnueabi",
"armv7-linux-androideabi",
"armv7-unknown-linux-gnueabi",
"i686-apple-darwin",
"i686-linux-android",
Expand All @@ -11295,6 +11301,7 @@
"aarch64-linux-android",
"aarch64-unknown-linux-gnu",
"arm-unknown-linux-gnueabi",
"armv7-linux-androideabi",
"armv7-unknown-linux-gnueabi",
"i686-apple-darwin",
"i686-linux-android",
Expand Down Expand Up @@ -11336,6 +11343,7 @@
"aarch64-linux-android",
"aarch64-unknown-linux-gnu",
"arm-unknown-linux-gnueabi",
"armv7-linux-androideabi",
"armv7-unknown-linux-gnueabi",
"i686-apple-darwin",
"i686-linux-android",
Expand Down
4 changes: 3 additions & 1 deletion examples/crate_universe/no_cargo_manifests/Cargo.Bazel.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"checksum": "894d383e72b82e75bc66aae5b9f3fe69de643e149c60b266ccbc98d88da3c278",
"checksum": "1b63d5b96029f6194b1118645622b32dd6f1d956dbf5b2457950bbd88ad487c9",
"crates": {
"ansi_term 0.12.1": {
"name": "ansi_term",
Expand Down Expand Up @@ -4836,6 +4836,7 @@
"aarch64-linux-android",
"aarch64-unknown-linux-gnu",
"arm-unknown-linux-gnueabi",
"armv7-linux-androideabi",
"armv7-unknown-linux-gnueabi",
"i686-apple-darwin",
"i686-linux-android",
Expand Down Expand Up @@ -4868,6 +4869,7 @@
"aarch64-linux-android",
"aarch64-unknown-linux-gnu",
"arm-unknown-linux-gnueabi",
"armv7-linux-androideabi",
"armv7-unknown-linux-gnueabi",
"i686-apple-darwin",
"i686-linux-android",
Expand Down
1 change: 1 addition & 0 deletions rust/platform/platform.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ load(
_SUPPORTED_CPU_ARCH = [
"aarch64",
"arm",
"armv7",
"i686",
"powerpc",
"s390x",
Expand Down
1 change: 1 addition & 0 deletions rust/platform/triple_mappings.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ SUPPORTED_T2_PLATFORM_TRIPLES = [
"aarch64-unknown-linux-gnu",
"arm-unknown-linux-gnueabi",
"armv7-unknown-linux-gnueabi",
"armv7-linux-androideabi",
"i686-linux-android",
"i686-unknown-freebsd",
"powerpc-unknown-linux-gnu",
Expand Down

0 comments on commit 1b451c3

Please sign in to comment.