@@ -42,6 +42,9 @@ load("@bazel_tools//tools/cpp:toolchain_utils.bzl", "find_cpp_toolchain")
42
42
load ("//lint/private:lint_aspect.bzl" , "LintOptionsInfo" , "noop_lint_action" , "output_files" , "patch_and_output_files" )
43
43
44
44
_MNEMONIC = "AspectRulesLintClangTidy"
45
+ _DISABLED_FEATURES = [
46
+ "layering_check" ,
47
+ ]
45
48
46
49
def _gather_inputs (ctx , compilation_context , srcs ):
47
50
inputs = srcs + ctx .files ._configs
@@ -55,7 +58,7 @@ def _toolchain_env(ctx, user_flags, action_name = ACTION_NAMES.cpp_compile):
55
58
ctx = ctx ,
56
59
cc_toolchain = cc_toolchain ,
57
60
requested_features = ctx .features ,
58
- unsupported_features = ctx .disabled_features ,
61
+ unsupported_features = ctx .disabled_features + _DISABLED_FEATURES ,
59
62
)
60
63
compile_variables = cc_common .create_compile_variables (
61
64
feature_configuration = feature_configuration ,
@@ -76,7 +79,7 @@ def _toolchain_flags(ctx, user_flags, action_name = ACTION_NAMES.cpp_compile):
76
79
ctx = ctx ,
77
80
cc_toolchain = cc_toolchain ,
78
81
requested_features = ctx .features ,
79
- unsupported_features = ctx .disabled_features ,
82
+ unsupported_features = ctx .disabled_features + _DISABLED_FEATURES ,
80
83
)
81
84
compile_variables = cc_common .create_compile_variables (
82
85
feature_configuration = feature_configuration ,
0 commit comments