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:
722
Android.bp
722
Android.bp
File diff suppressed because it is too large
Load Diff
@ -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])]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user