From ae0a6c98d4f94abedbedb2d51c27de5febd7df67 Mon Sep 17 00:00:00 2001 From: Noa Resare Date: Tue, 23 Nov 2021 10:15:13 -0800 Subject: [PATCH] Enable user_link_flags_feature for macosx cc_toolchain_config 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,