Skip to content

Commit

Permalink
Add -g in per_object_debug_info for Clang 12 and GCC 11
Browse files Browse the repository at this point in the history
  • Loading branch information
keith committed Oct 6, 2021
1 parent 26abd97 commit 69b6c55
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
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

0 comments on commit 69b6c55

Please sign in to comment.