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

Give the third-party crates a platform to be Android on 0238622 · on c4f56b0a96ecb29336e2cf16c522b794ae62ad3f · nandi · 19d ago
PACKAGE · 22 lines · 1.0 KBMySQL Blame HistoryRaw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
# The platform names reindeer writes into third-party/rust/BUCK, as
# configurations buck can match.
#
# The `platform` dict on a generated target is keyed by reindeer's own names,
# and the prelude turns a configuration into one of those names through this
# select. Its default list is desktop and Windows and wasm; there is no Android
# row, so an Android configuration resolved to None, `platform.get(None, {})`
# found nothing, and every target-gated dependency was dropped — silently, and
# only visible as the crate failing to compile against the imports it was
# supposed to have. glutin is where it shows first: glutin_egl_sys is not
# optional on Android, and it went missing.
#
# The name here has to be the one in reindeer.toml. Nothing checks that.
load("@prelude//rust:cargo_package.bzl", "DEFAULT_REINDEER_PLATFORMS", "set_reindeer_platforms")

set_reindeer_platforms(select({
    "DEFAULT": DEFAULT_REINDEER_PLATFORMS,
    "prelude//os:android": select({
        "DEFAULT": None,
        "prelude//cpu:arm64": "android-arm64",
    }),
}))