[PATCH] Allow -gsplit-dwarf for all ELF targets, not just Linux

Paul Robinson Paul_Robinson at playstation.sony.com
Sat Mar 21 13:30:40 PDT 2015

In http://reviews.llvm.org/D8484#144547, @emaste wrote:

> In http://reviews.llvm.org/D8484#144353, @probinson wrote:
> > Please disable this for PS4?  Our toolchain isn't ready to support this.
> Presumably you wouldn't pass -gsplit-dwarf to clang when building for PS4 though?

*I* wouldn't, but licensees love to try stuff out even if we don't claim it
works.  Currently, adding -gsplit-dwarf to a command line silently has
no effect.  With your patch, I get:

clang.exe: error: unable to execute command: program not executable

which will inevitably cause a support call and cost us time and effort.
I'd prefer to preserve the "silently has no effect" behavior, at least until
we are able to support this properly.



More information about the cfe-commits mailing list