Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add -g in per_object_debug_info for Clang 12 and GCC 11 #14084

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ public static ImmutableList<CToolchain.Feature> getLegacyFeatures(
" flag_group {",
" expand_if_all_available: 'per_object_debug_info_file'",
" flag: '-gsplit-dwarf'",
" flag: '-g'",
" }",
" }")));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7590,7 +7590,7 @@ def _impl(ctx):
],
flag_groups = [
flag_group(
flags = ["-gsplit-dwarf"],
flags = ["-gsplit-dwarf", "-g"],
expand_if_available = "per_object_debug_info_file",
),
],
Expand Down
2 changes: 1 addition & 1 deletion tools/cpp/unix_cc_toolchain_config.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def _impl(ctx):
],
flag_groups = [
flag_group(
flags = ["-gsplit-dwarf"],
flags = ["-gsplit-dwarf", "-g"],
expand_if_available = "per_object_debug_info_file",
),
],
Expand Down
2 changes: 1 addition & 1 deletion tools/osx/crosstool/cc_toolchain_config.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -1674,7 +1674,7 @@ def _impl(ctx):
],
flag_groups = [
flag_group(
flags = ["-gsplit-dwarf"],
flags = ["-gsplit-dwarf", "-g"],
expand_if_available = "per_object_debug_info_file",
),
],
Expand Down