Hi Robert,<br><br>Thanks for the report. We have this filed as PR3992:<br> <a href="http://llvm.org/bugs/show_bug.cgi?id=3992">http://llvm.org/bugs/show_bug.cgi?id=3992</a><br><br>I added a workaround which fixes this particular problem here:<br>
<a href="http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090420/016073.html">http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20090420/016073.html</a><br><br>--<br>ddunbar@ozzy:foo$ touch test.c<br>
ddunbar@ozzy:foo$ mkdir headers<br>ddunbar@ozzy:foo$ touch headers/test.h<br>ddunbar@ozzy:foo$ gcc -c test.c -I./headers -include test.h<br>ddunbar@ozzy:foo$ clang -c test.c -I./headers -include test.h<br>ddunbar@ozzy:foo$ clang -c test.c -I./headers -include test.h -E<br>
clang: warning: argument unused during compilation: '-c'<br># 1 "test.c"<br># 1 "test.c" 1<br># 1 "<built-in>" 1<br># 1 "<built-in>" 3<br># 110 "<built-in>" 3<br>
# 110 "<command line>" 1<br><br># 1 "./headers/test.h" 1<br># 112 "<command line>" 2<br># 112 "<built-in>" 2 3<br># 1 "test.c" 2<br>--<br><br> - Daniel<br>
<br><div class="gmail_quote">On Tue, Apr 21, 2009 at 10:25 PM, Robert Purves <span dir="ltr"><<a href="mailto:listrp@gmail.com">listrp@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
$ touch test.c<br>
$ mkdir headers<br>
$ touch headers/test.h<br>
$ gcc -c test.c -I./headers -include test.h<br>
$ clang -c test.c -I./headers -include test.h<br>
In file included from <built-in>:103:<br>
<command line>:1:10: fatal error: '/Users/rp/test.h' file not found<br>
#include "/Users/rp/test.h"<br>
^<br>
<br>
$ clang --version<br>
clang version 1.0 (<a href="http://llvm.org/svn/llvm-project/cfe/trunk" target="_blank">http://llvm.org/svn/llvm-project/cfe/trunk</a> 69762)<br>
Target: i386-apple-darwin9<br>
<br>
Robert P.<br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br>