Merge pull request #21373 from github/redsun82/load-cc-explicitly

Bazel: load `rules_cc` and `rules_shell` explicitly
This commit is contained in:
Paolo Tranquilli
2026-02-25 16:10:16 +01:00
committed by GitHub
5 changed files with 8 additions and 11 deletions

View File

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

View File

@@ -1,10 +0,0 @@
cc_library(
name = "fmt",
srcs = [
"src/format.cc",
"src/os.cc",
],
hdrs = glob(["include/**/*.h"]),
includes = ["include"],
visibility = ["//visibility:public"],
)

View File

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

View File

@@ -1,3 +1,5 @@
load("@rules_cc//cc:defs.bzl", "cc_library")
cc_library(
name = "swift-llvm-support-static",
srcs = glob(

View File

@@ -1,6 +1,7 @@
load("@bazel_skylib//rules:write_file.bzl", "write_file")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
load("@rules_shell//shell:sh_test.bzl", "sh_test")
load("//misc/bazel:lfs.bzl", "lfs_archive", "lfs_files")
_override = {
@@ -117,7 +118,7 @@ def test_no_override():
content = test_body,
is_executable = True,
)
native.sh_test(
sh_test(
name = "test-no-override",
srcs = [":test-no-override-gen"],
tags = ["override"],