| Fetch rustc the way buck can ship it, from what DotSlash already pins 8cf1b33 nandi 19d ago | 1 | # The pinned toolchains, fetched by buck rather than by the shims. See |
| 2 | # ../dist.bzl; the versions and digests come from scripts/*.dotslash. |
| Cross-compile for Android, with an NDK nobody has to install 14a30c0 nandi 19d ago | 3 | load( |
| 4 | "//:dist.bzl", |
| 5 | "android_ndk_dist", |
| 6 | "dotslash_dist", |
| 7 | "rust_android_sysroot", |
| 8 | "rust_dist", |
| 9 | "rust_std_android_dist", |
| 10 | "zig_dist", |
| 11 | ) |
| Fetch rustc the way buck can ship it, from what DotSlash already pins 8cf1b33 nandi 19d ago | 12 | |
| 13 | rust_dist(name = "rust", platform = "linux-x86_64") |
| 14 | |
| 15 | zig_dist(name = "zig", platform = "linux-x86_64") |
| Cross-compile for Android, with an NDK nobody has to install 14a30c0 nandi 19d ago | 16 | |
| 17 | # What fetches the NDK, rather than the NDK. See dist.bzl, and ../ndk.sh for |
| 18 | # why the big archive is the one thing here buck does not carry. |
| 19 | dotslash_dist(name = "dotslash", platform = "linux-x86_64") |
| 20 | |
| 21 | # Kept for a build that would rather have the NDK as a real input than fetch it |
| 22 | # where it runs — nothing depends on this today. |
| 23 | android_ndk_dist(name = "android-ndk", platform = "linux-x86_64") |
| 24 | |
| 25 | rust_std_android_dist(name = "rust-std-android", platform = "linux-x86_64") |
| 26 | |
| 27 | # What the Rust toolchain hands rustc as --sysroot when the target is Android. |
| 28 | rust_android_sysroot( |
| 29 | name = "android-sysroot", |
| 30 | rust = ":rust", |
| 31 | rust_std = ":rust-std-android", |
| 32 | host_triple = "x86_64-unknown-linux-gnu", |
| 33 | target_triple = "aarch64-linux-android", |
| 34 | ) |