Skip to content

Commit bb26f60

Browse files
committed
Patch C++ dependencies for Bazel 9
1 parent e44acd3 commit bb26f60

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

MODULE.bazel

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ GTEST_SHA256 = "ad7fdba11ea011c1d925b3289cf4af2c66a352e18d4c7264392fead75e919363
6363

6464
http_archive(
6565
name = "gtest",
66+
patch_cmds = [
67+
"echo 'load(\"@rules_cc//cc:defs.bzl\", \"cc_library\", \"cc_test\")\n' > _tmp",
68+
"cat BUILD.bazel >> _tmp",
69+
"mv _tmp BUILD.bazel",
70+
],
6671
sha256 = GTEST_SHA256,
6772
strip_prefix = "googletest-%s" % GTEST_VERSION,
6873
urls = ["https://github.com/google/googletest/archive/refs/tags/v%s.tar.gz" % GTEST_VERSION],
@@ -81,6 +86,11 @@ http_archive(
8186
git_repository(
8287
name = "nlohmann_json",
8388
commit = "9cca280a4d0ccf0c08f47a99aa71d1b0e52f8d03",
89+
patch_cmds = [
90+
"echo 'load(\"@rules_cc//cc:defs.bzl\", \"cc_library\")\n' > _tmp",
91+
"cat BUILD.bazel >> _tmp",
92+
"mv _tmp BUILD.bazel",
93+
],
8494
remote = "https://github.com/nlohmann/json.git",
8595
shallow_since = "1701207391 +0100",
8696
)
@@ -106,4 +116,3 @@ http_archive(
106116

107117
cc_compatibility_proxy = use_extension("@rules_cc//cc:extensions.bzl", "compatibility_proxy")
108118
use_repo(cc_compatibility_proxy, "cc_compatibility_proxy")
109-

0 commit comments

Comments
 (0)