[all-commits] [llvm/llvm-project] 762c70: [bazel] Make labels to third-party dependencies ex...

Aaron Siddhartha Mondal via All-commits all-commits at lists.llvm.org
Sun May 7 07:02:53 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 762c709911d3f4a9086239f226a6439a6bc8911c
  Author: Aaron Siddhartha Mondal <aaron at eomii.org>
  Date:   2023-05-07 (Sun, 07 May 2023)

  Changed paths:
    M utils/bazel/configure.bzl
    M utils/bazel/terminfo.bzl
    M utils/bazel/zlib.bzl

  Log Message:
  [bazel] Make labels to third-party dependencies explicit

Prefix occurrences of `//utils/bazel` with an explicit `@llvm-raw`.

This change lets us reuse code from `configure.bzl` in future compatibility patches for the bzlmod
module system.

The llvm-project overlay will be made available as an `@llvm-project-overlay` (name WIP) module in
the Bazel Central Registry. This means that we will have an `@llvm-project-overlay` workspace in
addition to the `@llvm-raw` and `@llvm-project` workspaces currently involved in the build. To keep
future patches to the existing build files as small as possible, the explicit naming proposed in this
change appears to be the simplest way to not confuse the module workspace resolution.

This is not a functional change to the current WORKSPACE build. It is a foundation for future patches.

GitHub Issue in the BCR: https://github.com/bazelbuild/bazel-central-registry/issues/206
GitHub Issue in LLVM: https://github.com/llvm/llvm-project/issues/55924

Reviewed By: csigg

Differential Revision: https://reviews.llvm.org/D136496

More information about the All-commits mailing list