Drop -gsplit-dwarf

This option is likely not really applicable for Android target builds
which are stripped / have a separate symbols output so just filter it
out. The option breaks on RISC-V due to implicit -mrelax and lack of
toolchain support:

clang++: error: -gsplit-dwarf is unsupported with RISC-V linker relaxation (-mrelax)

Bug: 266468464
Change-Id: Ibdb7bc7e08576c1096148a7a6381554888dfa6b0
This commit is contained in:
Alistair Delva
2023-01-23 14:33:18 -08:00
parent 2ffce32f6d
commit 41c96e4079
2 changed files with 1 additions and 722 deletions

File diff suppressed because it is too large Load Diff

View File

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