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