<p dir="ltr">... Why would you want to do this?</p>
<p dir="ltr">-eric</p>
<div class="gmail_quote">On Apr 4, 2014 12:26 AM, "Lubos Lunak" <<a href="mailto:l.lunak@centrum.cz">l.lunak@centrum.cz</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
 The option -split-dwarf-file is passed by the driver to the compiler after<br>
processing -Xclang options, thus overriding any possible explicitly specified<br>
option:<br>
<br>
$ clang++ -c -gsplit-dwarf a.cpp -o a.o -Xclang -split-dwarf-file -Xclang<br>
b.dwo<br>
$ readelf -wi a.o | grep dwo_name<br>
    <c>   DW_AT_GNU_dwo_name: (indirect string, offset: 0x0): a.dwo<br>
<br>
 This is because the driver invokes the compiler as<br>
/usr/bin/clang-3.4 -cc1 ... -split-dwarf-file b.dwo -o a.o -x c++<br>
a.cpp -split-dwarf-file a.dwo<br>
<br>
 The attached patch fixes this. Ok to push?<br>
<br>
--<br>
 Lubos Lunak<br>
<br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div>