Files
llvm/utils/bazel/MODULE.bazel
Keith Smiley 930066f6e4 [bazel] Add explicit dep on protobuf (#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
2025-11-20 11:20:17 -08:00

40 lines
1.2 KiB
Python

# This file is licensed under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
"""bzlmod configuration for llvm-project"""
module(name = "llvm-project-overlay")
bazel_dep(name = "apple_support", version = "1.24.1", repo_name = "build_bazel_apple_support")
bazel_dep(name = "bazel_skylib", version = "1.8.2")
bazel_dep(name = "platforms", version = "1.0.0")
bazel_dep(name = "protobuf", version = "31.1", repo_name = "com_google_protobuf")
bazel_dep(name = "rules_android", version = "0.6.6")
bazel_dep(name = "rules_cc", version = "0.2.11")
bazel_dep(name = "rules_foreign_cc", version = "0.15.1")
bazel_dep(name = "rules_python", version = "1.6.3")
bazel_dep(name = "rules_shell", version = "0.6.1")
llvm_repos_extension = use_extension(":extensions.bzl", "llvm_repos_extension")
use_repo(
llvm_repos_extension,
"gmp",
"llvm-raw",
"llvm_zlib",
"llvm_zstd",
"mpc",
"mpfr",
"nanobind",
"pfm",
"pybind11",
"pyyaml",
"robin_map",
"vulkan_headers",
"vulkan_sdk",
)
llvm_configure = use_repo_rule("@llvm-raw//utils/bazel:configure.bzl", "llvm_configure")
llvm_configure(name = "llvm-project")