<div dir="rtl"><div dir="ltr">Nikola, there is a patch for this, see <a href="http://reviews.llvm.org/D5268">http://reviews.llvm.org/D5268</a></div><div dir="ltr"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div dir="ltr">2014-09-25 0:56 GMT+03:00 Nikola Smiljanic <span dir="ltr"><<a href="mailto:popizdeh@gmail.com" target="_blank">popizdeh@gmail.com</a>></span>:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
I'll probably open a bug on this, but I just tried using clang.exe 3.5.0<br>
built with either MSVC or MinGW-w64-win32threads. When built with MinGW-w64,<br>
clang.exe is too promiscuous in terms of where it picks up system headers.<br>
It found a set of <a href="http://mingw.org" target="_blank">mingw.org</a> headers installed elsewhere on my system<br>
(definitely not on my path) which it proceeded to error on:<br><br></blockquote><div><br></div></span><div>I think we already have a bug <a href="http://llvm.org/bugs/show_bug.cgi?id=18546" target="_blank">http://llvm.org/bugs/show_bug.cgi?id=18546</a>. Clang driver never had proper support for MinGW.</div><span class=""><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
So, would love if clang could be a more self-sufficient toolchain and stop<br>
picking up headers from strange places that just happened to be sitting on<br>
my hard drive in the default install location, since those headers were not<br>
used to build clang at all.<span><font color="#888888"><br>
<br></font></span></blockquote><div><br></div></span><div>I was under the impression that we were trying to move a away from this "clang picks up headers from the toolchain it was built with" logic? Clang's default triple is determined at configure time which is a bit unfortunate. I think most people would agree that msvc compatible triple should be the default for windows version of clang.</div></div></div></div>
<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>
<br></blockquote></div><br></div>