From b0be5ba1776b5a1ae92d8ddc8294cbdc7c515050 Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Fri, 20 Dec 2024 12:48:47 -0800 Subject: [PATCH] Add no_dotd_file well known feature This feature is used in bazel to disable anything related to .d files. This is off by default but must be here to be enabled. --- cc/private/toolchain/unix_cc_toolchain_config.bzl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cc/private/toolchain/unix_cc_toolchain_config.bzl b/cc/private/toolchain/unix_cc_toolchain_config.bzl index e500999b..c7d63504 100644 --- a/cc/private/toolchain/unix_cc_toolchain_config.bzl +++ b/cc/private/toolchain/unix_cc_toolchain_config.bzl @@ -1760,6 +1760,8 @@ def _impl(ctx): enabled = True, ) + no_dotd_file_feature = feature(name = "no_dotd_file") + # TODO(#8303): Mac crosstool should also declare every feature. if is_linux: # Linux artifact name patterns are the default. @@ -1826,6 +1828,7 @@ def _impl(ctx): treat_warnings_as_errors_feature, archive_param_file_feature, set_install_name_feature, + no_dotd_file_feature, ] + layering_check_features(ctx.attr.compiler, ctx.attr.extra_flags_per_feature, is_macos = False) else: # macOS artifact name patterns differ from the defaults only for dynamic @@ -1875,6 +1878,7 @@ def _impl(ctx): treat_warnings_as_errors_feature, archive_param_file_feature, generate_linkmap_feature, + no_dotd_file_feature, ] + layering_check_features(ctx.attr.compiler, ctx.attr.extra_flags_per_feature, is_macos = True) parse_headers_action_configs, parse_headers_features = parse_headers_support(