[all-commits] [llvm/llvm-project] bd2658: [bazel] Enable layering_check for llvm and clang

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Jan 11 17:28:09 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bd2658d3b5ac6e0c88d1112f8266d384141b2101
      https://github.com/llvm/llvm-project/commit/bd2658d3b5ac6e0c88d1112f8266d384141b2101
  Author: Fangrui Song <i at maskray.me>
  Date:   2023-01-11 (Wed, 11 Jan 2023)

  Changed paths:
    M utils/bazel/llvm-project-overlay/clang/BUILD.bazel
    M utils/bazel/llvm-project-overlay/llvm/BUILD.bazel

  Log Message:
  -----------
  [bazel] Enable layering_check for llvm and clang

Similar to D113952 for mlir.

I have added many missing dependencies so that
`bazel-5.0.0 build --config=generic_clang --features=layering_check @llvm-project//llvm:all @llvm-project//clang:all`
works now.
Enable the feature to ensure layering and catch circular dependencies
(https://llvm.org/docs/CodingStandards.html#library-layering).

Reviewed By: GMNGeoffrey, rupprecht

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




More information about the All-commits mailing list