[bazel] Add layering-check

In the same vein as https://reviews.llvm.org/D141553
Enable the feature globally to ensure layering and catch circular dependencies
(https://llvm.org/docs/CodingStandards.html#library-layering).

Differential Revision: https://reviews.llvm.org/D143678
This commit is contained in:
Guillaume Chatelet 2023-02-09 21:36:59 +00:00
parent 533997b026
commit 5916decfc2

View File

@ -22,6 +22,9 @@ build --dynamic_mode=off
# based on compilation_mode.
build --strip=never
# Add layering check to all projects.
build --features=layering_check
###############################################################################
# Options to select different strategies for linking potential dependent
# libraries. The default leaves it disabled.