Skip to content

Commit 4f1332a

Browse files
authored
Refactor cc_library srcs to remove unnecessary glob
Removed 'system_provided' and 'native.glob' calls from cc_library srcs.
1 parent 44f92aa commit 4f1332a

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

bazel/repo_rules/local_runtime_repo_setup.bzl

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ def define_local_runtime_toolchain_impl(
8383
cc_import(
8484
name = "interface",
8585
interface_library = interface_library,
86-
system_provided = True,
8786
)
8887
full_abi_deps.append(":interface")
8988

@@ -92,7 +91,6 @@ def define_local_runtime_toolchain_impl(
9291
cc_import(
9392
name = "abi3_interface",
9493
interface_library = abi3_interface_library,
95-
system_provided = 1,
9694
)
9795
abi3_deps.append(":abi3_interface")
9896

@@ -116,10 +114,7 @@ def define_local_runtime_toolchain_impl(
116114
cc_library(
117115
name = "libpython{}".format(major),
118116
hdrs = [":includes"],
119-
srcs = abi3_libraries + native.glob(
120-
include = ["dlls/**"],
121-
allow_empty = True,
122-
),
117+
srcs = abi3_libraries,
123118
)
124119

125120
# full abi libraries.
@@ -131,10 +126,7 @@ def define_local_runtime_toolchain_impl(
131126
cc_library(
132127
name = "libpython{}".format(major_minor),
133128
hdrs = [":includes"],
134-
srcs = libraries + native.glob(
135-
include = ["dlls/**"],
136-
allow_empty = True,
137-
),
129+
srcs = libraries,
138130
)
139131

140132
py_runtime(

0 commit comments

Comments
 (0)