[PATCH] Allow overriding -split-dwarf-file
Lubos Lunak
l.lunak at centrum.cz
Fri Apr 4 00:23:49 PDT 2014
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-allow-split-dwarf-file-to-be-overriden-by-command-li.patch
Type: text/x-diff
Size: 2215 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140404/bce86b78/attachment.patch>
More information about the cfe-commits
mailing list