mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2026-01-02 12:07:55 +08:00
fix(bazel): add missing load statements
Bazel 9 drops builtin `cc_*` rules, they need to be loaded explicitly now.
This commit is contained in:
committed by
Jesse Beder
parent
5cf25533e3
commit
3738976bdc
@@ -1,3 +1,5 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
|
||||
|
||||
package(default_visibility = ["//test:__subpackages__"])
|
||||
|
||||
cc_library(
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
#include "yaml-cpp/fptostring.h"
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
#include <iomanip>
|
||||
|
||||
namespace YAML {
|
||||
namespace {
|
||||
|
||||
|
||||
@@ -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"])
|
||||
|
||||
@@ -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"])
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_test")
|
||||
|
||||
cc_test(
|
||||
name = "test",
|
||||
srcs = glob([
|
||||
|
||||
Reference in New Issue
Block a user