fix(bazel): add missing load statements

Bazel 9 drops builtin `cc_*` rules, they need to be loaded explicitly now.
This commit is contained in:
Alexander Hans
2025-12-26 01:02:59 +01:00
committed by Jesse Beder
parent 5cf25533e3
commit 3738976bdc
8 changed files with 226 additions and 48 deletions

View File

@@ -1,3 +1,5 @@
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
package(default_visibility = ["//test:__subpackages__"])
cc_library(

View File

@@ -1,6 +1,8 @@
#include "yaml-cpp/fptostring.h"
#include "gtest/gtest.h"
#include <iomanip>
namespace YAML {
namespace {

View File

@@ -30,6 +30,7 @@
#
# Bazel Build for Google C++ Testing Framework(Google Test)-googlemock
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_test")
load("@rules_python//python:defs.bzl", "py_library", "py_test")
licenses(["notice"])

View File

@@ -30,6 +30,7 @@
#
# Bazel BUILD for The Google C++ Testing Framework (Google Test)
load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_test")
load("@rules_python//python:defs.bzl", "py_library", "py_test")
licenses(["notice"])

View File

@@ -1,3 +1,5 @@
load("@rules_cc//cc:defs.bzl", "cc_test")
cc_test(
name = "test",
srcs = glob([