Skip to content

Commit

Permalink
Add no_dotd_file well known feature
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
keith committed Dec 20, 2024
1 parent 8c94e11 commit a794fd2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cc/private/toolchain/unix_cc_toolchain_config.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit a794fd2

Please sign in to comment.