Remove Bazel native C++ autoload shim (#7152)

This commit is contained in:
2026-06-12 08:59:56 -07:00
committed by GitHub
parent e80abb24d1
commit af1057e7b0
3 changed files with 23 additions and 4 deletions
-4
View File
@@ -3,10 +3,6 @@
# for now: filter out annoying TASTY warnings
common --ui_event_filters=-INFO
# Bazel 9 removes native rule symbols. Keep external repositories that still
# call native.cc_library building while upstream Starlark catches up.
common --incompatible_autoload_externally=+cc_library
# Don't use toolchains_llvm for the swift app build
common:mactools --ignore_dev_dependency
+2
View File
@@ -425,6 +425,8 @@ GTL_SHA = "1969c45dd76eac0dd87e9e2b65cffe358617f4fe1bcd203f72f427742537913a"
http_archive(
name = "gtl",
build_file_content = """
load("@rules_cc//cc:defs.bzl", "cc_library")
cc_library(
name = "gtl",
hdrs = glob(["include/gtl/*.hpp"]),
@@ -50,3 +50,24 @@ index 75bb909586..1a4bed511e 100644
deps = [
"call_tracer",
"channel_arg_names",
diff --git a/third_party/address_sorting/address_sorting.bzl b/third_party/address_sorting/address_sorting.bzl
index 872b10e2ef..fe7d8eb751 100644
--- a/third_party/address_sorting/address_sorting.bzl
+++ b/third_party/address_sorting/address_sorting.bzl
@@ -31,5 +31,6 @@
+load("@rules_cc//cc:defs.bzl", "cc_library")
def address_sorting_cc_library(name, srcs, hdrs, copts, includes, linkopts=[]):
- native.cc_library(
+ cc_library(
name = name,
srcs = srcs,
hdrs = hdrs,
diff --git a/third_party/xxhash/BUILD b/third_party/xxhash/BUILD
--- a/third_party/xxhash/BUILD
+++ b/third_party/xxhash/BUILD
@@ -1,4 +1,5 @@
# TODO(donnadionne): describe this package.
+load("@rules_cc//cc:defs.bzl", "cc_library")
cc_library(
name = "xxhash",
hdrs = [