From 039c72e5e25a426cbf45c582bf325dcd112af4bd Mon Sep 17 00:00:00 2001 From: Noa Resare Date: Wed, 24 Nov 2021 12:23:29 +0000 Subject: [PATCH] Enable user_link_flags_feature for macosx cc_toolchain_config (#14319) 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 5dbaa86ab2ac0b..d44b7922265950 100644 --- a/tools/cpp/unix_cc_toolchain_config.bzl +++ b/tools/cpp/unix_cc_toolchain_config.bzl @@ -1216,6 +1216,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,