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",
}),
}))
|