Skip to content

Commit 0c574c2

Browse files
keithaadeshps-mcw
authored andcommitted
[bazel] Add explicit dep on protobuf (llvm#168928)
This is required for correctly loading the protobuf rules. It's possible we could drop the version here to a lower version, as long as that version supports the versions of bazel we support. I picked this because it is the current version being used by bazel 8.0.0 (which is defined in the .bazelversion). Users can override this in their project anyways if they need an older one
1 parent 80109d6 commit 0c574c2

File tree

3 files changed

+359
-7
lines changed

3 files changed

+359
-7
lines changed

utils/bazel/MODULE.bazel

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,35 @@
33
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
44

55
"""bzlmod configuration for llvm-project"""
6+
67
module(name = "llvm-project-overlay")
78

89
bazel_dep(name = "apple_support", version = "1.24.1", repo_name = "build_bazel_apple_support")
910
bazel_dep(name = "bazel_skylib", version = "1.8.2")
1011
bazel_dep(name = "platforms", version = "1.0.0")
12+
bazel_dep(name = "protobuf", version = "31.1", repo_name = "com_google_protobuf")
1113
bazel_dep(name = "rules_android", version = "0.6.6")
1214
bazel_dep(name = "rules_cc", version = "0.2.11")
1315
bazel_dep(name = "rules_foreign_cc", version = "0.15.1")
1416
bazel_dep(name = "rules_python", version = "1.6.3")
1517
bazel_dep(name = "rules_shell", version = "0.6.1")
1618

1719
llvm_repos_extension = use_extension(":extensions.bzl", "llvm_repos_extension")
18-
1920
use_repo(
2021
llvm_repos_extension,
22+
"gmp",
2123
"llvm-raw",
2224
"llvm_zlib",
23-
"vulkan_headers",
24-
"vulkan_sdk",
25-
"gmp",
26-
"mpfr",
25+
"llvm_zstd",
2726
"mpc",
27+
"mpfr",
28+
"nanobind",
2829
"pfm",
29-
"llvm_zstd",
3030
"pybind11",
3131
"pyyaml",
3232
"robin_map",
33-
"nanobind",
33+
"vulkan_headers",
34+
"vulkan_sdk",
3435
)
3536

3637
llvm_configure = use_repo_rule("@llvm-raw//utils/bazel:configure.bzl", "llvm_configure")

0 commit comments

Comments
 (0)