Page MenuHomePhabricator

[Driver] Default to DWARF 5 for Fuchsia
Needs ReviewPublic

Authored by phosek on Mar 17 2018, 6:26 PM.



We use DWARF 5 on Fuchsia, make it the toolchain default.

Diff Detail

rC Clang

Event Timeline

phosek created this revision.Mar 17 2018, 6:26 PM

We aren't actually using DWARF 5 yet AFAICT. Our builds don't pass -gdwarf-5. So I'm not sure we have yet verified that all the DWARF-consuming tools people are using with Fuchsia binaries can handle all of DWARF 5 (which has several major format changes). I'd certainly like 5 to be the default, but I think we need to establish a set of consumers we care about and verify their format version support before we can be sure about this.

I should also point out that even in DWARF v5 mode LLVM does not yet emit DWARF 5 variants of all sections as DWARF v5 support in LLVM is not yet feature-complete.