From 020854719eac497be0369ce6d54e320000910ad1 Mon Sep 17 00:00:00 2001 From: Jeremy Volkman Date: Wed, 26 Apr 2023 01:27:11 -0700 Subject: [PATCH] Pass must_keep_debug = False to cc_common.create_link_variables (#1046) --- foreign_cc/private/cc_toolchain_util.bzl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/foreign_cc/private/cc_toolchain_util.bzl b/foreign_cc/private/cc_toolchain_util.bzl index 1bd872dd..9e6000d8 100644 --- a/foreign_cc/private/cc_toolchain_util.bzl +++ b/foreign_cc/private/cc_toolchain_util.bzl @@ -268,6 +268,7 @@ def get_flags_info(ctx, link_output_file = None): feature_configuration = feature_configuration, is_using_linker = True, is_linking_dynamic_library = True, + must_keep_debug = False, ), ), cxx_linker_static = cc_common.get_memory_inefficient_command_line( @@ -278,6 +279,7 @@ def get_flags_info(ctx, link_output_file = None): feature_configuration = feature_configuration, is_using_linker = False, is_linking_dynamic_library = False, + must_keep_debug = False, output_file = link_output_file, ), ), @@ -289,6 +291,7 @@ def get_flags_info(ctx, link_output_file = None): feature_configuration = feature_configuration, is_using_linker = True, is_linking_dynamic_library = False, + must_keep_debug = False, ), ), assemble = cc_common.get_memory_inefficient_command_line(