Skip to content

Commit f269450

Browse files
committed
Update bazel examples.
Use the simplified repo rules from llvm@934f084. Reviewed By: GMNGeoffrey Differential Revision: https://reviews.llvm.org/D108237
1 parent 7063ac1 commit f269450

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

utils/bazel/examples/http_archive/WORKSPACE

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,38 +20,24 @@ http_archive(
2020
)
2121

2222
# Replace with the LLVM commit you want to use.
23-
LLVM_COMMIT = "09ac97ce350316b95b8cddb796d52f71b6f68296"
23+
LLVM_COMMIT = "81d5412439efd0860c0a8dd51b831204f118d485"
2424

2525
# The easiest way to calculate this for a new commit is to set it to empty and
2626
# then run a bazel build and it will report the digest necessary to cache the
2727
# archive and make the build reproducible.
28-
LLVM_SHA256 = "2fb1aa06d12f8db349a27426cb0ced062987c5c2a75143c69f4284929e2750ff"
29-
30-
# FIXME: It shouldn't be necessary to use http_archive twice here. Caching
31-
# should mean that this isn't too expensive though.
28+
LLVM_SHA256 = "50b3ef31b228ea0c96ae074005bfac087c56e6a4b1c147592dd33f41cad0706b"
3229

3330
http_archive(
34-
name = "llvm-project-raw",
35-
build_file_content = "#empty",
31+
name = "llvm-raw",
32+
build_file_content = "# empty",
3633
sha256 = LLVM_SHA256,
3734
strip_prefix = "llvm-project-" + LLVM_COMMIT,
3835
urls = ["https://github.com/llvm/llvm-project/archive/{commit}.tar.gz".format(commit = LLVM_COMMIT)],
3936
)
4037

41-
http_archive(
42-
name = "llvm-bazel",
43-
sha256 = LLVM_SHA256,
44-
strip_prefix = "llvm-project-{}/utils/bazel".format(LLVM_COMMIT),
45-
urls = ["https://github.com/llvm/llvm-project/archive/{commit}.tar.gz".format(commit = LLVM_COMMIT)],
46-
)
47-
48-
load("@llvm-bazel//:configure.bzl", "llvm_configure", "llvm_disable_optional_support_deps")
38+
load("@llvm-raw//utils/bazel:configure.bzl", "llvm_configure", "llvm_disable_optional_support_deps")
4939

50-
llvm_configure(
51-
name = "llvm-project",
52-
src_path = ".",
53-
src_workspace = "@llvm-project-raw//:WORKSPACE",
54-
)
40+
llvm_configure(name = "llvm-project")
5541

5642
# Disables optional dependencies for Support like zlib and terminfo. You may
5743
# instead want to configure them using the macros in the corresponding bzl

0 commit comments

Comments
 (0)