nandi/jolt-nativepublic Fork 0
fd0e21a6c5d745ff9d134f92f909665454a7a1c9
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.

BUCK · 48 lines · 2.0 KBPython Blame HistoryRaw
Build both objects under buck2, against the BuildBuddy cache 600f207 nandi 20d ago1load("@prelude//platforms:defs.bzl", "host_configuration")
2load(":defs.bzl", "execution_platform")
3
4# Where every action runs: locally, against the BuildBuddy cache. Registered by
5# `[build] execution_platforms` in .buckconfig — and, because a toolchain is
6# itself a target in the prelude cell, by `[parser] target_platform_detector_spec`
7# there too. Setting only the first leaves every rustc action on the prelude's
8# uncached default.
9execution_platform(
10 name = "cache",
11 cpu_configuration = host_configuration.cpu,
12 os_configuration = host_configuration.os,
13 use_windows_path_separators = host_info().os.is_windows,
14 visibility = ["PUBLIC"],
15)
Let actions run on a worker, now that there is something to send 5a37b4b nandi 20d ago16
17# The same platform, allowed to dispatch. The properties name the worker to run
18# on; BuildBuddy matches an action against its executor pool by these.
19execution_platform(
20 name = "remote",
21 cpu_configuration = host_configuration.cpu,
22 os_configuration = host_configuration.os,
23 remote_enabled = True,
24 remote_execution_properties = {
25 "OSFamily": "Linux",
Let the media plane cross to the phone, camera and all fd0e21a nandi 19d ago26 # 24.04, not 22.04: a build script compiled against this machine's glibc
27 # has to *run* on the worker, and 22.04's is 2.35 — old enough that
28 # thiserror's build script died with "GLIBC_2.39 not found" before a
29 # single crate was compiled. frq hit the same floor from the other side
30 # (jolt itself needs 2.38) and moved for the same reason.
31 "container-image": "docker://gcr.io/flame-public/rbe-ubuntu24-04:latest",
Let actions run on a worker, now that there is something to send 5a37b4b nandi 20d ago32 },
33 use_windows_path_separators = host_info().os.is_windows,
34 visibility = ["PUBLIC"],
35)
Cross-compile for Android, with an NDK nobody has to install 14a30c0 nandi 20d ago36
37# A *target* platform, unlike the two above: this is what a graph is built
38# for, not where the building runs. Naming it on a configured_alias moves the
39# target configuration and leaves the execution platform alone, so build
40# scripts and proc macros still compile and run on the host.
41platform(
42 name = "android-arm64",
43 constraint_values = [
44 "prelude//os/constraints:os[android]",
45 "prelude//cpu/constraints:cpu[arm64]",
46 ],
47 visibility = ["PUBLIC"],
48)