[cfe-commits] please review: fix .d for -include flag

Nick Lewycky nlewycky at google.com
Mon Feb 7 15:19:21 PST 2011


The attached patch fixes a small difference between gcc and clang when
building .d files. When GCC is passed a "-include foo/bar.h" flag, it will
emit "foo/bar.h" verbatim to the .d file. Clang takes the absolute path,
which isn't helpful when the .d file is supposed to be relocatable.

This is PR8974. Please review!

Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110207/7ae9592f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr8974.patch
Type: text/x-patch
Size: 7798 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110207/7ae9592f/attachment.bin>


More information about the cfe-commits mailing list