Skip to content

Commit b77476a

Browse files
tetrominocopybara-github
authored andcommitted
Fix missing deps in some bzl_library targets
Copybara Import from #439 BEGIN_PUBLIC Fix missing deps in some bzl_library targets (#439) Complete transitive deps of .bzl files are needed for tools like Stardoc. See bazel-contrib/rules_go#4394 Closes #439 END_PUBLIC COPYBARA_INTEGRATE_REVIEW=#439 from tetromino:main 49a761d PiperOrigin-RevId: 782874155 Change-Id: Ie4995859f8a64eda3c64fd515c41dfc23e6b6cf1
1 parent ff06b70 commit b77476a

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

cc/BUILD

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ bzl_library(
8686
name = "find_cc_toolchain_bzl",
8787
srcs = ["find_cc_toolchain.bzl"],
8888
visibility = ["//visibility:public"],
89+
deps = ["//cc/common"],
8990
)
9091

9192
bzl_library(
@@ -104,6 +105,10 @@ bzl_library(
104105
name = "repositories_bzl",
105106
srcs = ["repositories.bzl"],
106107
visibility = ["//visibility:private"],
108+
deps = [
109+
"//cc/common",
110+
"//cc/private/toolchain:cc_configure_bzl",
111+
],
107112
)
108113

109114
bzl_library(

cc/private/toolchain/BUILD

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
# limitations under the License.
1414
#
1515

16+
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
1617
load("//cc:cc_library.bzl", "cc_library")
1718
load("//cc/toolchains:cc_flags_supplier.bzl", "cc_flags_supplier")
1819
load("//cc/toolchains:compiler_flag.bzl", "compiler_flag")
@@ -88,6 +89,16 @@ filegroup(
8889
srcs = ["link_dynamic_library.sh"],
8990
)
9091

92+
bzl_library(
93+
name = "cc_configure_bzl",
94+
srcs = [
95+
"cc_configure.bzl",
96+
"lib_cc_configure.bzl",
97+
"unix_cc_configure.bzl",
98+
"windows_cc_configure.bzl",
99+
],
100+
)
101+
91102
filegroup(
92103
name = "lib_cc_configure",
93104
srcs = ["lib_cc_configure.bzl"],

0 commit comments

Comments
 (0)