Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c567f70

Browse files
committed
Add cc_import for ABI3-compatible unversioned Windows lib
This could potentially fix the header test.
1 parent 26af5b5 commit c567f70

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

python/repositories.bzl

+7-1
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,12 @@ cc_import(
296296
system_provided = True,
297297
)
298298
299+
cc_import(
300+
name = "abi3_interface",
301+
interface_library = "libs/python3.lib",
302+
system_provided = True,
303+
)
304+
299305
filegroup(
300306
name = "includes",
301307
srcs = glob(["include/**/*.h"]),
@@ -304,7 +310,7 @@ filegroup(
304310
cc_library(
305311
name = "python_headers",
306312
deps = select({{
307-
"@bazel_tools//src/conditions:windows": [":interface"],
313+
"@bazel_tools//src/conditions:windows": [":interface", ":abi3_interface"],
308314
"//conditions:default": None,
309315
}}),
310316
hdrs = [":includes"],

0 commit comments

Comments
 (0)