File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,6 +63,11 @@ GTEST_SHA256 = "ad7fdba11ea011c1d925b3289cf4af2c66a352e18d4c7264392fead75e919363
6363
6464http_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(
8186git_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
107117cc_compatibility_proxy = use_extension ("@rules_cc//cc:extensions.bzl" , "compatibility_proxy" )
108118use_repo (cc_compatibility_proxy , "cc_compatibility_proxy" )
109-
You can’t perform that action at this time.
0 commit comments