probinson added a comment.

In D69822#1733243 <https://reviews.llvm.org/D69822#1733243>, @dblaikie wrote:

> In D69822#1733226 <https://reviews.llvm.org/D69822#1733226>, @probinson wrote:
>
> > > Want to decouple setting the DWARF version from enabling/disabling 
> > > generation of debug info.
> >
> > Um, why?
>
>
> If you've got a big build system with various users opting in/out of DWARF 
> and you want to migrate to DWARFv5, say, but you can't add "-gdwarf-5" to 
> your build system, because that'd turn on debug info in cases that don't need 
> it - but it's easier to change the default than to modify all cases that 
> enable dwarf across the codebase.
>
> Open to discussion about whether this is a good/bad idea - but it'd be useful 
> for Google at least & seemed low-cost enough to go this route.


Because you want the default to be based on your corporate environment rather 
than the target platform.  The maze of twisty -g passages gets a new secret 
door.  Oh well.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D69822/new/

https://reviews.llvm.org/D69822



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to