From e53ae63c04a7158b78da19bc76ede57a8cc31673 Mon Sep 17 00:00:00 2001 From: Noa Resare Date: Wed, 24 Nov 2021 10:38:00 +0000 Subject: [PATCH] Enable user_link_flags_feature for macosx cc_toolchain_config (#14313) This will cause the values passed in the link_libs parameters to not get silently dropped on macOS 12 Monterey, and fix the problem where the command line dev tools toolchain will output C++ binaries fails to start with a segmentation fault error. Fixes: #14273 Closes #14275. PiperOrigin-RevId: 411840375 --- tools/cpp/unix_cc_toolchain_config.bzl | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/cpp/unix_cc_toolchain_config.bzl b/tools/cpp/unix_cc_toolchain_config.bzl index 1d4ee950d04980..26119141059c1f 100644 --- a/tools/cpp/unix_cc_toolchain_config.bzl +++ b/tools/cpp/unix_cc_toolchain_config.bzl @@ -1243,6 +1243,7 @@ def _impl(ctx): coverage_feature, default_compile_flags_feature, default_link_flags_feature, + user_link_flags_feature, fdo_optimize_feature, supports_dynamic_linker_feature, dbg_feature,