File tree Expand file tree Collapse file tree 3 files changed +39
-1
lines changed Expand file tree Collapse file tree 3 files changed +39
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,14 @@ register_toolchains(
1818)
1919
2020bazel_dep (name = "rules_shell" , version = "0.2.0" , dev_dependency = True )
21- bazel_dep (name = "googletest" , version = "1.15.2" , dev_dependency = True )
21+ bazel_dep (name = "googletest" , version = "1.17.0" , dev_dependency = True )
22+ single_version_override (
23+ module_name = "googletest" ,
24+ patch_strip = 1 ,
25+ patches = ["//:googletest.patch" ],
26+ version = "1.17.0" ,
27+ )
28+
2229bazel_dep (name = "rules_testing" , version = "0.6.0" , dev_dependency = True )
2330bazel_dep (name = "stardoc" , version = "0.8.0" , dev_dependency = True )
2431
Original file line number Diff line number Diff line change 1+ diff --git a/BUILD.bazel b/BUILD.bazel
2+ index 53501454..e85849d6 100644
3+ --- a/BUILD.bazel
4+ +++ b/BUILD.bazel
5+ @@ -29,6 +29,7 @@
6+ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
7+ #
8+ # Bazel Build for Google C++ Testing Framework(Google Test)
9+ + load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
10+
11+ package(default_visibility = ["//visibility:public"])
12+
13+ diff --git a/MODULE.bazel b/MODULE.bazel
14+ index 5cb0b156..683bf92b 100644
15+ --- a/MODULE.bazel
16+ +++ b/MODULE.bazel
17+ @@ -51,6 +51,10 @@ bazel_dep(
18+ name = "re2",
19+ version = "2024-07-02.bcr.1",
20+ )
21+ + bazel_dep(
22+ + name = "rules_cc",
23+ + version = "0.2.8",
24+ + )
25+
26+ bazel_dep(
27+ name = "rules_python",
Original file line number Diff line number Diff line change @@ -70,6 +70,8 @@ system_library(
7070EOF
7171
7272 cat << EOF > MODULE.bazel
73+ bazel_dep(name = "rules_cc", version = "0.2.8")
74+
7375system_library = use_repo_rule("//:cc/system_library.bzl", "system_library")
7476
7577system_library(
@@ -94,6 +96,7 @@ system_library(
9496EOF
9597
9698 cat << EOF > BUILD
99+ load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
97100cc_binary(
98101 name = "test",
99102 srcs = ["test.cc"],
@@ -218,6 +221,7 @@ system_library(
218221EOF
219222
220223 cat << EOF > BUILD
224+ load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
221225cc_binary(
222226 name = "test",
223227 srcs = ["test.cc"],
You can’t perform that action at this time.
0 commit comments