nandi/jolt-nativepublic Fork 0
a78520161e25e26b1bb67e2553889eeaaf58d5ab
Commits
Clone
git clone https://git.rickub.com/nandi/jolt-native.git
git clone ssh://git@rickub.com/nandi/jolt-native.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Cross-compile for Android, with an NDK nobody has to install 14a30c0 · on a78520161e25e26b1bb67e2553889eeaaf58d5ab · nandi · 19d ago
BUCK · 34 lines · 1.1 KBPython Blame HistoryRaw
 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",
)