This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Another issue with CLANG


On Mon, 14 Jan 2013 13:43:26 +0000, Jon TURNEY wrote:
> On 14/01/2013 11:47, Angelo Graziosi wrote:
> > For the record...
> > 
> > ROOT guys have fixed this issue with the following patch to their patched
> > version of llvm/clang:
> > 
> > $ cat InitHeaderSearch.cpp.diff
> > --- ROOT/interpreter/llvm/src/tools/clang/lib/Frontend/InitHeaderSearch.cpp   
> > 2013-01-01 11:50:05.000000000 +0100
> > +++
> > root_trunk/interpreter/llvm/src/tools/clang/lib/Frontend/InitHeaderSearch.cpp
> >       2013-01-14 12:10:43.906250000 +0100
> > @@ -305,7 +305,8 @@
> >    case llvm::Triple::RTEMS:
> >      break;
> >    case llvm::Triple::Cygwin:
> > -    AddPath("/usr/include/w32api", System, true, false, false);
> > +    // The headers in w32api/ are not cygwin-compatible (but native)
> > +    //AddPath("/usr/include/w32api", System, true, false, false);
> 
> Well, ok.  But this comment is almost completely wrong.
> 
> cygwin clang has /usr/include/w32api in the default include path (try
> compiling your test program with clang -v), and since it appears *after*
> /usr/include, including glx.h works correctly.
> 
> I have no idea what the right way to solve this problem is.

http://cygwin-ports.git.sourceforge.net/git/gitweb.cgi?p=cygwin-ports/llvm;a=blob;f=3.1-cygwin-includes.patch;h=1444765;hb=HEAD


Yaakov

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]