Skip to content

Commit 4731607

Browse files
authored
Add extra_deps for additional DLLs in setup
1 parent ccb2059 commit 4731607

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bazel/repo_rules/local_runtime_repo_setup.bzl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,14 @@ def define_local_runtime_toolchain_impl(
9898
)
9999
abi3_deps.append(":abi3_interface")
100100

101+
extra_deps = []
101102
for dll in additional_dlls:
102103
name = paths.basename(dll).replace(".", "_")
103104
cc_import(
104105
name = name,
105106
shared_library = dll,
106107
)
107-
libraries.append(":" + name)
108-
abi3_libraries.append(":" + name)
108+
extra_deps.append(":" + name)
109109

110110
native.filegroup(
111111
name = "includes",
@@ -128,6 +128,7 @@ def define_local_runtime_toolchain_impl(
128128
name = "libpython{}".format(major),
129129
hdrs = [":includes"],
130130
srcs = abi3_libraries,
131+
deps = extra_deps,
131132
)
132133

133134
# full abi libraries.
@@ -140,6 +141,7 @@ def define_local_runtime_toolchain_impl(
140141
name = "libpython{}{}".format(major, minor),
141142
hdrs = [":includes"],
142143
srcs = libraries,
144+
deps = extra_deps,
143145
)
144146

145147
py_runtime(

0 commit comments

Comments
 (0)