From 4b46a7a447807db1488436cd6cc46940949b703d Mon Sep 17 00:00:00 2001 From: Lizan Zhou Date: Mon, 27 Sep 2021 12:20:58 -0700 Subject: [PATCH] Add -g in `per_object_debug_info` for Clang 12 and GCC 11 --- cc/private/toolchain/unix_cc_toolchain_config.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cc/private/toolchain/unix_cc_toolchain_config.bzl b/cc/private/toolchain/unix_cc_toolchain_config.bzl index c3cf3bae..fa15f225 100644 --- a/cc/private/toolchain/unix_cc_toolchain_config.bzl +++ b/cc/private/toolchain/unix_cc_toolchain_config.bzl @@ -313,7 +313,7 @@ def _impl(ctx): ], flag_groups = [ flag_group( - flags = ["-gsplit-dwarf"], + flags = ["-gsplit-dwarf", "-g"], expand_if_available = "per_object_debug_info_file", ), ],