mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-10 12:28:25 +00:00
- `abseil-cpp` 20260107.1 -> 20260817.0 (major) - `bazel_skylib` 1.9.0 -> 1.9.2 - `google_benchmark` 1.9.5 -> 1.10.0 - `googletest` 1.17.0.bcr.2 -> 1.18.0.bcr.1 - `libxml2` 2.15.2 -> 2.15.3 - `platforms` 1.0.0 -> 1.1.0 - `protobuf` 34.0.bcr.1 -> 36.2 (major) - `rules_cc` 0.2.25 -> 0.2.27 - `rules_pkg` 1.2.0 -> 1.3.0 - `rules_python` 1.9.0 -> 2.4.5 (major) - `tcmalloc` 0.0.0-20250927-12f2552 -> 0.0.0-20260818-15db23d - `zlib-ng` 2.3.3 -> 2.3.3.bcr.2 - `zstd` 1.5.7.bcr.1 -> 1.5.7.bcr.3 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: CarbonInfraBot <64870956+CarbonInfraBot@users.noreply.github.com>
152 lines
5.8 KiB
Python
152 lines
5.8 KiB
Python
# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
# Exceptions. See /LICENSE for license information.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
"""Bazel modules.
|
|
|
|
`MODULE.bazel.lock` may change locally when `bazel` is executed. This means one
|
|
of:
|
|
|
|
1. An input is changing, typically `MODULE.bazel` or `.bazelversion`.
|
|
- Running `bazel mod deps` provides a canonical update to
|
|
`MODULE.bazel.lock`; include the changes.
|
|
- GitHub test actions may also identify platform-specific lockfile
|
|
updates.
|
|
2. The host platform hasn't yet been added to the lock file.
|
|
- Platforms tested with GitHub actions are kept up-to-date. Other
|
|
platforms may fall out of sync due to `bazel` or dependency changes,
|
|
and should be updated with a PR the same way a platform is added.
|
|
- Running `bazel mod deps` provides a canonical update to
|
|
`MODULE.bazel.lock`; create a PR with those changes in order to include
|
|
the host platform.
|
|
|
|
`bazel mod deps` evaluates every module extension, but reuses results recorded
|
|
in `MODULE.bazel.lock`. Re-evaluating some extensions can be expensive; for
|
|
example, the Rust crates newer protobuf versions depend on require downloading
|
|
a Rust toolchain.
|
|
|
|
For updates, run `scripts/query_module_versions.py` to list the latest package
|
|
versions.
|
|
"""
|
|
|
|
module(name = "carbon")
|
|
|
|
bazel_dep(name = "abseil-cpp", version = "20260817.0")
|
|
bazel_dep(name = "bazel_skylib", version = "1.9.2")
|
|
bazel_dep(name = "boost.unordered", version = "1.90.0.bcr.1")
|
|
bazel_dep(name = "google_benchmark", version = "1.10.0")
|
|
bazel_dep(name = "googletest", version = "1.18.0.bcr.1")
|
|
bazel_dep(name = "libpfm", version = "4.13.0")
|
|
bazel_dep(name = "re2", version = "2025-11-05.bcr.1")
|
|
bazel_dep(name = "rules_cc", version = "0.2.27")
|
|
bazel_dep(name = "rules_pkg", version = "1.3.0")
|
|
bazel_dep(name = "rules_shell", version = "0.8.0")
|
|
bazel_dep(name = "tcmalloc", version = "0.0.0-20260818-15db23d")
|
|
bazel_dep(name = "tree-sitter-bazel", version = "0.26.5")
|
|
|
|
bazel_dep(name = "wolfd_bazel_compile_commands", version = "0.5.2", dev_dependency = True)
|
|
git_override(
|
|
module_name = "wolfd_bazel_compile_commands",
|
|
# This is https://github.com/wolfd/bazel-compile-commands/pull/3 which is
|
|
# needed to correctly select target configurations in our compile commands.
|
|
commit = "7c673ac868cd237f262bb37a7819b1a279566a66",
|
|
remote = "https://github.com/chandlerc/bazel-compile-commands.git",
|
|
)
|
|
|
|
bazel_dep(name = "bazel_clang_tidy", dev_dependency = True)
|
|
git_override(
|
|
module_name = "bazel_clang_tidy",
|
|
# HEAD as of 2026-01-28.
|
|
commit = "c4d35e0d0b838309358e57a2efed831780f85cd0",
|
|
remote = "https://github.com/erenon/bazel_clang_tidy.git",
|
|
)
|
|
|
|
bazel_cc_toolchain = use_extension(
|
|
"//bazel/cc_toolchains:clang_configuration.bzl",
|
|
"clang_toolchain_extension",
|
|
)
|
|
use_repo(bazel_cc_toolchain, "bazel_cc_toolchain")
|
|
|
|
register_toolchains("@bazel_cc_toolchain//:all")
|
|
|
|
register_toolchains("//toolchain/install:all")
|
|
|
|
# Required for llvm-project.
|
|
bazel_dep(name = "libxml2", version = "2.15.3")
|
|
bazel_dep(name = "platforms", version = "1.1.0")
|
|
bazel_dep(name = "protobuf", version = "36.2", repo_name = "com_google_protobuf")
|
|
bazel_dep(name = "zlib-ng", version = "2.3.3.bcr.2", repo_name = "llvm_zlib")
|
|
bazel_dep(name = "zstd", version = "1.5.7.bcr.3", repo_name = "llvm_zstd")
|
|
bazel_dep(name = "xz", version = "5.4.5.bcr.9", repo_name = "llvm_xz")
|
|
|
|
###############################################################################
|
|
# llvm-project
|
|
###############################################################################
|
|
|
|
# Load a repository for the raw llvm-project, pre-overlay.
|
|
bazel_dep(name = "llvm-raw")
|
|
git_override(
|
|
module_name = "llvm-raw",
|
|
build_file_content = "# empty",
|
|
# We pin to specific upstream commits and try to track top-of-tree
|
|
# reasonably closely rather than pinning to a specific release.
|
|
# HEAD as of 2026-11-02.
|
|
commit = "c744694c6ae1d12bbf7d0447b4bc91ee94a1904c",
|
|
patch_cmds = ["echo \"module(name='llvm-raw')\" > MODULE.bazel"],
|
|
patch_strip = 1,
|
|
patches = [
|
|
"//bazel/llvm_project:0001_Patch_for_mallinfo2_when_using_Bazel_build_system.patch",
|
|
"//bazel/llvm_project:0012_Drop_dependencies_on_linux_uapi_and_pyyaml.patch",
|
|
"//bazel/llvm_project:0013_Exclude_additional_libc_math_builtins.patch",
|
|
],
|
|
remote = "https://github.com/llvm/llvm-project.git",
|
|
)
|
|
|
|
# Apply the overlay to produce llvm-project.
|
|
llvm_project = use_extension(
|
|
"//bazel/llvm_project:llvm_project.bzl",
|
|
"llvm_project",
|
|
)
|
|
use_repo(llvm_project, "llvm-project")
|
|
|
|
###############################################################################
|
|
# Python
|
|
###############################################################################
|
|
|
|
bazel_dep(name = "rules_python", version = "2.4.5")
|
|
|
|
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
|
|
python.toolchain(
|
|
python_version = "3.12",
|
|
)
|
|
use_repo(python, "python_versions")
|
|
|
|
###############################################################################
|
|
# Bazel integration testing
|
|
###############################################################################
|
|
|
|
bazel_dep(
|
|
name = "rules_bazel_integration_test",
|
|
version = "0.37.1",
|
|
dev_dependency = True,
|
|
)
|
|
|
|
# We test against our current Bazel version, the latest release, and the latest
|
|
# release candidate.
|
|
bazel_binaries = use_extension(
|
|
"@rules_bazel_integration_test//:extensions.bzl",
|
|
"bazel_binaries",
|
|
dev_dependency = True,
|
|
)
|
|
bazel_binaries.download(version_file = "//:.bazelversion")
|
|
bazel_binaries.download(version = "latest")
|
|
bazel_binaries.download(version = "last_rc")
|
|
use_repo(
|
|
bazel_binaries,
|
|
"bazel_binaries",
|
|
"bazel_binaries_bazelisk",
|
|
"build_bazel_bazel_.bazelversion",
|
|
"build_bazel_bazel_last_rc",
|
|
"build_bazel_bazel_latest",
|
|
)
|