Skip to content

Commit 0379f94

Browse files
refactor: migrate BUILD files to explicit rules_cc imports
Add explicit load statements for cc_binary, cc_library, and cc_test from @rules_cc//cc:defs.bzl in: - shared/cpp/BUILD.bazel - swift/logging/BUILD.bazel - misc/bazel/internal/zipmerge/BUILD.bazel
1 parent a9fd6c9 commit 0379f94

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

misc/bazel/internal/zipmerge/BUILD.bazel

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_test")
2+
13
cc_library(
24
name = "lib",
35
srcs = [
@@ -28,7 +30,7 @@ cc_test(
2830
linkstatic = True, # required to build the test in the internal repo
2931
deps = [
3032
":lib",
31-
"@bazel_tools//tools/cpp/runfiles",
3233
"@googletest//:gtest_main",
34+
"@rules_cc//cc/runfiles",
3335
],
3436
)

shared/cpp/BUILD.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
load("@rules_cc//cc:defs.bzl", "cc_library")
2+
13
cc_library(
24
name = "extractor_shared",
35
srcs = glob(["*.cpp"]),

swift/logging/BUILD.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
load("@rules_cc//cc:defs.bzl", "cc_library")
2+
13
cc_library(
24
name = "logging",
35
srcs = glob(["*.cpp"]),

0 commit comments

Comments
 (0)