Remove -gdwarf-aranges

-gdwarf-aranges breaks a later linking step on riscv64 with:
ld.lld: error: out/soong/.intermediates/external/webrtc/webrtc_audio_processing/android_vendor.UpsideDownCake_riscv64_static/webrtc_audio_processing.a(audio_processing_impl.o):(.rodata.str1.1): offset is outside the section

Bug: 269343483
Test: lunch aosp_riscv64-userdebug && m libaudiopreprocessing
Change-Id: Iaf96679c3e82229adf958668f9afbdf0d4768c6b
This commit is contained in:
Colin Cross
2023-02-14 14:19:19 -08:00
parent 5c26820f4d
commit d5686e69d7
2 changed files with 1 additions and 722 deletions

File diff suppressed because it is too large Load Diff

View File

@ -75,6 +75,7 @@ def FilterFlags(flags, to_skip = set()):
'-fuse-ctor-homing',
'-fno-rtti',
'-gsplit-dwarf', # TODO(b/266468464): breaks riscv
'-gdwarf-aranges', # TODO(b/269343483): breaks riscv
]).union(to_skip)
return [x for x in flags if not any([x.startswith(y) for y in skipped_opts])]