Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module(

bazel_dep(name = "bazel_features", version = "1.32.0")
bazel_dep(name = "bazel_skylib", version = "1.8.2")
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "platforms", version = "1.1.0")
bazel_dep(name = "rules_cc", version = "0.2.4")
bazel_dep(name = "rules_license", version = "1.0.0")
bazel_dep(name = "rules_shell", version = "0.6.1")
Expand Down
2 changes: 2 additions & 0 deletions rust/platform/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ package(default_visibility = ["//visibility:public"])
declare_config_settings()

# WASI Preview version constraint settings
#
# TODO(https://github.com/bazelbuild/platforms/pull/123): Replace with upstream.
constraint_setting(
name = "wasi_version",
default_constraint_value = ":wasi_preview_1",
Expand Down
4 changes: 4 additions & 0 deletions rust/platform/triple_mappings.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ SUPPORTED_T2_PLATFORM_TRIPLES = {

_T3_PLATFORM_TRIPLES = {
"aarch64-unknown-nto-qnx710": _support(std = True, host_tools = False),
"bpfeb-unknown-none": _support(std = False, host_tools = False),
"bpfel-unknown-none": _support(std = False, host_tools = False),
"wasm64-unknown-unknown": _support(std = False, host_tools = False),
}

Expand Down Expand Up @@ -115,6 +117,8 @@ _CPU_ARCH_TO_BUILTIN_PLAT_SUFFIX = {
"armv7": "armv7",
"armv7s": None,
"asmjs": None,
"bpfeb": "bpfeb",
"bpfel": "bpfel",
"i386": "i386",
"i586": None,
"i686": "x86_32",
Expand Down
4 changes: 4 additions & 0 deletions test/unit/platform_triple/platform_triple_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ def _construct_known_triples_test_impl(ctx):
_assert_parts(env, triple("thumbv7em-none-eabihf"), "thumbv7em", None, "none", "eabihf")
_assert_parts(env, triple("thumbv8m.main-none-eabi"), "thumbv8m.main", None, "none", "eabi")

# BPF targets
_assert_parts(env, triple("bpfeb-unknown-none"), "bpfeb", "unknown", "none", None)
_assert_parts(env, triple("bpfel-unknown-none"), "bpfel", "unknown", "none", None)

# Test all WASM32 targets
_assert_parts(env, triple("wasm32-unknown-unknown"), "wasm32", "unknown", "unknown", None)
_assert_parts(env, triple("wasm32-unknown-emscripten"), "wasm32", "unknown", "emscripten", None)
Expand Down
Loading