Skip to content

Commit de5f2b8

Browse files
committed
fixup toolchains
1 parent 92f7b9a commit de5f2b8

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

python/private/py_toolchain_suite.bzl

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,15 @@ def py_toolchain_suite(*, prefix, user_repository_name, python_version, set_pyth
6666
)
6767

6868
if set_python_version_constraint == "False":
69-
if flag_values:
70-
name = "{prefix}_version_setting_no_python_version".format(prefix = prefix)
71-
match_any.append(name)
72-
native.config_setting(
73-
name = name,
74-
flag_values = flag_values | {
75-
str(Label("//python/config_settings:python_version")): "",
76-
},
77-
visibility = ["//visibility:private"],
78-
)
69+
name = "{prefix}_version_setting_no_python_version".format(prefix = prefix)
70+
match_any.append(name)
71+
native.config_setting(
72+
name = name,
73+
flag_values = flag_values | {
74+
str(Label("//python/config_settings:python_version")): "",
75+
},
76+
visibility = ["//visibility:private"],
77+
)
7978

8079
name = "{prefix}_version_setting_{python_version}".format(
8180
prefix = prefix,

0 commit comments

Comments
 (0)