From 5916decfc2ba3f5ce5c5c0fe8de72ea2f8b4c3bf Mon Sep 17 00:00:00 2001 From: Guillaume Chatelet Date: Thu, 9 Feb 2023 21:36:59 +0000 Subject: [PATCH] [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 --- utils/bazel/.bazelrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/bazel/.bazelrc b/utils/bazel/.bazelrc index b2b472b1e2d5..b0f137f9d1b4 100644 --- a/utils/bazel/.bazelrc +++ b/utils/bazel/.bazelrc @@ -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.