[cfe-commits] Fwd: [LLVMdev] [PATCH] Fix `clang -print-file-name=include`

Chris Lattner clattner at apple.com
Tue Aug 31 09:52:41 PDT 2010


Can someone on linux review this please?

-Chris

Begin forwarded message:

> From: nobled <nobled at dreamwidth.org>
> Date: August 29, 2010 1:16:46 PM PDT
> To: llvmdev at cs.uiuc.edu
> Subject: [LLVMdev] [PATCH] Fix `clang -print-file-name=include`
> 
> I noticed this problem with Ubuntu's clang package -- clang 2.7's
> internal include headers are shipped in /usr/lib/clang/1.1/include,
> but running `llvm-clang -print-file-name=include` just prints
> "include" (ie not found). Same bug is in SVN trunk - fix attached; it
> assumes the header location is always tied to the clang version for
> 2.8 onward (correct me if I'm wrong). I don't know how to write a
> regression test, but if someone could point the way I'll write one for
> this too.
> 
> Also, gcc seems to have a second include directory that clang doesn't,
> "include-fixed", which has, well, system headers that are 'fixed' to
> be ANSI-C-compatible. Does clang just not need an equivalent to that?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-print-file-name-include.patch
Type: text/x-patch
Size: 584 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20100831/fa8d4cbd/attachment.bin>
-------------- next part --------------
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev



More information about the cfe-commits mailing list