We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16a322f commit 05a6b9cCopy full SHA for 05a6b9c
tests/simple_binary/BUILD
@@ -27,6 +27,17 @@ cc_binary(
27
linkshared = 1,
28
)
29
30
+# On windows, python use .pyd extension for native modules.
31
+cc_binary(
32
+ name = "foo.pyd",
33
+ srcs = ["foo.cc"],
34
+ linkshared = 1,
35
+ target_compatible_with = select({
36
+ "@platforms//os:windows": [],
37
+ "//conditions:default": ["@platforms//:incompatible"],
38
+ }),
39
+)
40
+
41
# Regression test for building C code
42
# https://github.com/bazelbuild/rules_cc/pull/440#issuecomment-3075519628
43
cc_binary(
0 commit comments