[PATCH] Allow overriding -split-dwarf-file

Eric Christopher echristo at gmail.com
Fri Apr 4 07:16:59 PDT 2014


... Why would you want to do this?

-eric
On Apr 4, 2014 12:26 AM, "Lubos Lunak" <l.lunak at centrum.cz> wrote:

>
>  The option -split-dwarf-file is passed by the driver to the compiler after
> processing -Xclang options, thus overriding any possible explicitly
> specified
> option:
>
> $ clang++ -c -gsplit-dwarf a.cpp -o a.o -Xclang -split-dwarf-file -Xclang
> b.dwo
> $ readelf -wi a.o | grep dwo_name
>     <c>   DW_AT_GNU_dwo_name: (indirect string, offset: 0x0): a.dwo
>
>  This is because the driver invokes the compiler as
> /usr/bin/clang-3.4 -cc1 ... -split-dwarf-file b.dwo -o a.o -x c++
> a.cpp -split-dwarf-file a.dwo
>
>  The attached patch fixes this. Ok to push?
>
> --
>  Lubos Lunak
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140404/aceca817/attachment.html>


More information about the cfe-commits mailing list