@@ -35,7 +35,7 @@ toolchain(
35
35
cc_import(
36
36
name = "python_lib",
37
37
interface_library = select({
38
- " :windows" : " :python_import_lib" ,
38
+ " @platforms//os :windows" : " :python_import_lib" ,
39
39
# A placeholder for Unix platforms which makes --no_build happy.
40
40
" //conditions:default" : " not-existing.lib" ,
41
41
} ),
@@ -46,7 +46,7 @@ cc_library(
46
46
name = "python_headers",
47
47
hdrs = [":python_include"],
48
48
deps = select({
49
- " :windows" : [" :python_lib" ],
49
+ " @platforms//os :windows" : [" :python_lib" ],
50
50
" //conditions:default" : [],
51
51
} ),
52
52
includes = ["python_include"],
@@ -56,19 +56,13 @@ cc_library(
56
56
name = "python_embed",
57
57
hdrs = [":python_include"],
58
58
deps = select({
59
- " :windows" : [" :python_lib" ],
59
+ " @platforms//os :windows" : [" :python_lib" ],
60
60
" //conditions:default" : [],
61
61
} ),
62
62
includes = ["python_include"],
63
63
linkopts = ["%{ PYTHON_EMBED_LINKOPTS} "],
64
64
copts = ["%{ PYTHON_EMBED_COPTS} "],
65
65
)
66
66
67
- config_setting(
68
- name = "windows",
69
- values = { " cpu" : " x64_windows" } ,
70
- visibility = ["//visibility:public"],
71
- )
72
-
73
67
%{ PYTHON_INCLUDE_GENRULE}
74
68
%{ PYTHON_IMPORT_LIB_GENRULE}
0 commit comments