Skip to content

Commit 58016ea

Browse files
committed
Make the build work again with Bazel version 0.23.0+
1 parent 61f54c2 commit 58016ea

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

WORKSPACE

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1+
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_jar")
2+
13
http_jar(
24
name = "antlr4",
35
sha256 = "f41dce7441d523baf9769cb7756a00f27a4b67e55aacab44525541f62d7f6688",
46
url = "https://www.antlr.org/download/antlr-4.7.1-complete.jar",
57
)
68

7-
new_http_archive(
9+
http_archive(
810
name = "antlr4_cpp_runtime",
9-
build_file = "BUILD.antlr4_cpp_runtime",
11+
build_file = "@//:BUILD.antlr4_cpp_runtime",
1012
sha256 = "4d0714f441333a63e50031c9e8e4890c78f3d21e053d46416949803e122a6574",
1113
strip_prefix = "antlr4-4.7.1/runtime/Cpp",
1214
url = "https://github.com/antlr/antlr4/archive/4.7.1.tar.gz",
@@ -26,9 +28,9 @@ http_archive(
2628
url = "https://github.com/abseil/abseil-cpp/archive/e5be80532b5d998813f9db952d2cc5401b1532df.tar.gz",
2729
)
2830

29-
new_http_archive(
31+
http_archive(
3032
name = "cpp_btree",
31-
build_file = "BUILD.cpp_btree",
33+
build_file = "@//:BUILD.cpp_btree",
3234
sha256 = "e86d047ef509d70f706d526301dc64b6935826d38649f834de49cd11a3018d01",
3335
strip_prefix = "cpp-btree-92ec61e4b8bf182c5c49ebf6540dac62d569d090",
3436
url = "https://github.com/algorithm-ninja/cpp-btree/archive/92ec61e4b8bf182c5c49ebf6540dac62d569d090.tar.gz",

0 commit comments

Comments
 (0)