Skip to content
Open
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
3 changes: 3 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ build --@protobuf//bazel/toolchains:prefer_prebuilt_protoc
# Ruff linting via aspect_rules_lint
build --aspects=//tools/lint:linters.bzl%ruff
build --@aspect_rules_lint//lint:fail_on_violation

# Use free-threaded Python 3.14t
build --platforms=//tools/platforms:freethreaded
3 changes: 3 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ module(

register_toolchains("//tools/proto:python_toolchain_toolchain")

register_execution_platforms("//tools/platforms:freethreaded")

# --- Core dependencies ---

bazel_dep(name = "bazel_skylib", version = "1.9.0")
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "rules_python", version = "1.9.0")
bazel_dep(name = "rules_go", version = "0.60.0")
bazel_dep(name = "gazelle", version = "0.47.0")
Expand Down
11 changes: 11 additions & 0 deletions tools/platforms/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
platform(
name = "freethreaded",
constraint_values = [
"@aspect_rules_py//uv/private/constraints/abi:freethreading_enabled",
],
flags = [
"--@rules_python//python/config_settings:py_freethreaded=yes",
],
parents = ["@platforms//host"],
visibility = ["//visibility:public"],
)
Loading