Skip to content

Commit

Permalink
Add cc_import for ABI3-compatible unversioned Windows lib
Browse files Browse the repository at this point in the history
This could potentially fix the header test.
  • Loading branch information
nicholasjng committed Apr 5, 2024
1 parent 26af5b5 commit c567f70
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion python/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,12 @@ cc_import(
system_provided = True,
)
cc_import(
name = "abi3_interface",
interface_library = "libs/python3.lib",
system_provided = True,
)
filegroup(
name = "includes",
srcs = glob(["include/**/*.h"]),
Expand All @@ -304,7 +310,7 @@ filegroup(
cc_library(
name = "python_headers",
deps = select({{
"@bazel_tools//src/conditions:windows": [":interface"],
"@bazel_tools//src/conditions:windows": [":interface", ":abi3_interface"],
"//conditions:default": None,
}}),
hdrs = [":includes"],
Expand Down

0 comments on commit c567f70

Please sign in to comment.