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
This commit is contained in:
Paolo Tranquilli
2026-02-05 17:35:25 +01:00
parent d1c63603ee
commit f881d368f0
3 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_test")
cc_library(
name = "lib",
srcs = [
@@ -28,7 +30,7 @@ cc_test(
linkstatic = True, # required to build the test in the internal repo
deps = [
":lib",
"@bazel_tools//tools/cpp/runfiles",
"@googletest//:gtest_main",
"@rules_cc//cc/runfiles",
],
)

View File

@@ -1,3 +1,5 @@
load("@rules_cc//cc:defs.bzl", "cc_library")
cc_library(
name = "extractor_shared",
srcs = glob(["*.cpp"]),

View File

@@ -1,3 +1,5 @@
load("@rules_cc//cc:defs.bzl", "cc_library")
cc_library(
name = "logging",
srcs = glob(["*.cpp"]),