Skip to content

Commit

Permalink
Revert "Add -dead_strip in default opt link flags for darwin (#17312)" (
Browse files Browse the repository at this point in the history
#17696)

This reverts commit 0f9912b to fix the regression reported in #17686
  • Loading branch information
ShreeM01 authored Mar 8, 2023
1 parent 755cd4b commit 885ae7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/cpp/unix_cc_configure.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ def configure_unix_toolchain(repository_ctx, cpu_value, overriden_tools):
],
),
"%{opt_link_flags}": get_starlark_list(
["-Wl,-dead_strip"] if darwin else _add_linker_option_if_supported(
[] if darwin else _add_linker_option_if_supported(
repository_ctx,
cc,
"-Wl,--gc-sections",
Expand Down

0 comments on commit 885ae7e

Please sign in to comment.