[all-commits] [llvm/llvm-project] 4aa1c1: [Bazel] Rework LLVM target selection

Geoffrey Martin-Noble via All-commits all-commits at lists.llvm.org
Wed Jun 30 16:53:16 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4aa1c141bd674564aaee83516b7e338aa3aae9e3
      https://github.com/llvm/llvm-project/commit/4aa1c141bd674564aaee83516b7e338aa3aae9e3
  Author: Geoffrey Martin-Noble <gcmn at google.com>
  Date:   2021-06-30 (Wed, 30 Jun 2021)

  Changed paths:
    M utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
    A utils/bazel/llvm-project-overlay/llvm/enum_targets_gen.bzl

  Log Message:
  -----------
  [Bazel] Rework LLVM target selection

This patch introduces a custom rule for expanding the LLVM target
enumeration .def files. This provides a slightly cleaner API for these
rules, but is mostly to permit selects to be used when determining which
LLVM targets to build. Right now the target list is generated at Bazel
configure time, but this will allows us to add functionality to also
control which targets are built based on config settings.

Tested: Ran `bazel test --config=rbe ... @llvm-project//...`

Reviewed By: chandlerc

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




More information about the All-commits mailing list