File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed
integration/local_toolchains Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 11def _toolchain_version_condition_impl (ctx ):
2- runtime = ctx .toolchains ["@rules_python//python:toolchain_type" ].py_runtime
2+ runtime = ctx .toolchains ["@rules_python//python:toolchain_type" ].py3_runtime
33 version = (
44 runtime .interpreter_version_info .major ,
55 runtime .interpreter_version_info .minor ,
Original file line number Diff line number Diff line change @@ -30,5 +30,26 @@ py_reconfig_test(
3030 CC_TOOLCHAIN ,
3131 ],
3232 main = "toolchain_runs_test.py" ,
33+ # Doesn't work -- doesn't have ConstraintValueInfo provider?
34+ #target_compatible_with = [
35+ # "@platforms//host",
36+ #],
37+ # Doesn't work -- not a valid select condition?
38+ #target_compatible_with = select({
39+ # "@platforms//host": [],
40+ # "//conditions:default": ["@platforms//:incompatible"],
41+ #}),
42+ ##target_compatible_with = select({
43+ ## ":is_host": [],
44+ ## "//conditions:default": ["@platforms//:incompatible"],
45+ ##}),
46+ tags = ["no-remote-exec" ],
3347 deps = ["//python/runfiles" ],
3448)
49+
50+ config_setting (
51+ name = "is_host" ,
52+ constraint_values = [
53+ "@platforms//host:host" ,
54+ ],
55+ )
You can’t perform that action at this time.
0 commit comments