Skip to content

Commit

Permalink
Add remove unreferenced code feature
Browse files Browse the repository at this point in the history
Closes #22373.

Closes #22392.

PiperOrigin-RevId: 636833912
Change-Id: I79db86d9cb9b4718b48b4b60325ffb5d9aa9c4dd
  • Loading branch information
matt-sm authored and Copybara-Service committed May 24, 2024
1 parent cb42a1d commit 4bdc4f4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tools/cpp/windows_cc_toolchain_config.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -1059,6 +1059,17 @@ def _impl(ctx):
],
)

remove_unreferenced_code_feature = feature(
name = "remove_unreferenced_code",
enabled = True,
flag_sets = [
flag_set(
actions = [ACTION_NAMES.c_compile, ACTION_NAMES.cpp_compile],
flag_groups = [flag_group(flags = ["/Zc:inline"])],
),
],
)

compiler_input_flags_feature = feature(
name = "compiler_input_flags",
flag_sets = [
Expand Down Expand Up @@ -1162,6 +1173,7 @@ def _impl(ctx):
determinism_feature,
treat_warnings_as_errors_feature,
smaller_binary_feature,
remove_unreferenced_code_feature,
ignore_noisy_warnings_feature,
user_compile_flags_feature,
sysroot_feature,
Expand Down

0 comments on commit 4bdc4f4

Please sign in to comment.