File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed
tests/toolchains/multi_platform_resolution Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,10 @@ END_UNRELEASED_TEMPLATE
84
84
([ #3204 ] ( https://github.com/bazel-contrib/rules_python/issues/3204 ) ).
85
85
* (uv) {obj}` //python/uv:lock.bzl%lock ` now works with a local platform
86
86
runtime.
87
+ * (toolchains) WORKSPACE builds now correctly register musl and freethreaded
88
+ variants. Setting {obj}` --py_linux_libc=musl ` and ` --py_freethreaded=yes ` now
89
+ activate them, respectively.
90
+ ([ #3262 ] ( https://github.com/bazel-contrib/rules_python/issues/3262 ) ).
87
91
88
92
{#v0-0-0-added}
89
93
### Added
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ def python_toolchain_build_file_content(
214
214
user_repository_name = "{}_{}" .format (user_repository_name , platform ),
215
215
python_version = python_version ,
216
216
set_python_version_constraint = set_python_version_constraint ,
217
- target_settings = [] ,
217
+ target_settings = meta . target_settings ,
218
218
))
219
219
return "\n \n " .join (entries )
220
220
Original file line number Diff line number Diff line change @@ -141,13 +141,6 @@ def _test_toolchains(name):
141
141
if runtime .libc :
142
142
config_settings [labels .PY_LINUX_LIBC ] = runtime .libc
143
143
144
- # TODO: Workspace isn't correctly registering musl and freethreaded
145
- # toolchains, so skip them for now.
146
- target_compatible_with = []
147
- if not BZLMOD_ENABLED and (runtime .libc == "musl" or
148
- runtime .freethreaded == "yes" ):
149
- target_compatible_with = ["@platforms//:incompatible" ]
150
-
151
144
analysis_test (
152
145
name = test_name ,
153
146
target = name + "_current_toolchain" ,
You can’t perform that action at this time.
0 commit comments