Roll crubit->llvm dependency.
This updates the LLVM commit referenced by `crubit/bazel/llvm.bzl`.
Follow-up changes are needed in `crubit/WORKSPACE` to support
`llvm_zstd` dependency.
This removes `shallow_since` attribute from `llvm.bzl`, because Bazel
docs say to avoid using it:
https://bazel.build/rules/lib/repo/git#new_git_repository-shallow_since:
"Due to bugs in git's --shallow-since implementation, using this
attribute is not recommended as it may result in fetch failures."
PiperOrigin-RevId: 523988029
diff --git a/WORKSPACE b/WORKSPACE
index 0341743..cb291b2 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -135,6 +135,17 @@
sha256 = "7fda611bceb5a793824a3c63ecbf68d2389e70c38f5763e9b1d415ca24912f44"
)
+# zstd is a dependency of llvm. See https://reviews.llvm.org/D143344#4232172
+http_archive(
+ name = "llvm_zstd",
+ build_file = "@llvm-raw//utils/bazel/third_party_build:zstd.BUILD",
+ sha256 = "7c42d56fac126929a6a85dbc73ff1db2411d04f104fae9bdea51305663a83fd0",
+ strip_prefix = "zstd-1.5.2",
+ urls = [
+ "https://github.com/facebook/zstd/releases/download/v1.5.2/zstd-1.5.2.tar.gz"
+ ],
+)
+
# Create the "loader" repository, then use it to configure the desired LLVM
# repository. For more details, see the comment in bazel/llvm.bzl.
diff --git a/bazel/llvm.bzl b/bazel/llvm.bzl
index b335460..7221a08 100644
--- a/bazel/llvm.bzl
+++ b/bazel/llvm.bzl
@@ -58,8 +58,10 @@
new_git_repository(
name = "llvm-raw",
build_file_content = "# empty",
- commit = "d6abdf46bc4d305f6046a8134316dd19cc6b5598",
- shallow_since = "1669049241 +0000",
+ commit = "c8525e980bca1600feff00b5b8579cbbdd3dcf1a",
+ # `shallow_since` is not required but it improves the performance of CI
+ # builds.
+ shallow_since = "1680799311 -0700",
remote = "https://github.com/llvm/llvm-project.git",
)