Skip to content

Commit

Permalink
Replace -g flag by -gdwarf-4 for musl armhf toolchain [AP-3099] (#141)
Browse files Browse the repository at this point in the history
The binutils version of the toolchain seems to be too old for the
compiler, expecting DWARF5. This change enforces DWARF4.
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100725
  • Loading branch information
sbmueller authored Nov 15, 2024
1 parent 48056ff commit 8f17481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cc/toolchains/musl/armhf/config.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def _impl(ctx):
actions = all_compile_actions,
flag_groups = ([
flag_group(
flags = ["-O2", "-g"],
flags = ["-O2", "-gdwarf-4"],
),
]),
with_features = [with_feature_set(features = ["opt"])],
Expand Down

0 comments on commit 8f17481

Please sign in to comment.