From 885ae7ef3afd88e21c33579bcd64ee3136bd8715 Mon Sep 17 00:00:00 2001 From: kshyanashree <109167932+kshyanashree@users.noreply.github.com> Date: Wed, 8 Mar 2023 13:00:20 -0800 Subject: [PATCH] Revert "Add -dead_strip in default opt link flags for darwin (#17312)" (#17696) This reverts commit 0f9912ba8a6780a124478fd3ff4fb91b64dbae53 to fix the regression reported in #17686 --- tools/cpp/unix_cc_configure.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cpp/unix_cc_configure.bzl b/tools/cpp/unix_cc_configure.bzl index 248d9c424cb53a..9e19954c604fb7 100644 --- a/tools/cpp/unix_cc_configure.bzl +++ b/tools/cpp/unix_cc_configure.bzl @@ -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",