Load cc_library from rules_cc

In Bazel 9+ all rulesets have to be explicitly loaded from external
modules.

See
https://blog.bazel.build/2026/01/20/bazel-9.html#:~:text=In%208.0%2C%20we,flag%20in%2010.0.

Change-Id: Ib55d32ea9e935cc5ed0c304a1eed972b3b12b833
This commit is contained in:
Laurenz
2026-08-19 08:47:14 +02:00
committed by Laurenz Altenmüller
parent 0b03102b09
commit fe351d5ab8
3 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -28,6 +28,8 @@
#
# Support for building Ceres Solver with a specific configuration.
load("@rules_cc//cc:defs.bzl", "cc_library")
CERES_SRCS = ["internal/ceres/" + filename for filename in [
"accelerate_sparse.cc",
"array_utils.cc",
@@ -160,7 +162,7 @@ def ceres_library(
else:
schur_sources = native.glob(["internal/ceres/generated/*.cc"])
native.cc_library(
cc_library(
name = name,
# Internal sources, options, and dependencies.