<div class="gmail_quote">2012/3/18 Nikola Smiljanic <span dir="ltr"><<a href="mailto:popizdeh@gmail.com">popizdeh@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Here's something we talked about on IRC, it should have two effects:<br>
<br>
1. regex is used to match directories of the form x.x.x, this should<br>
be the only change for mingw-w64<br></blockquote><div><br>This seems functional on my end. Good stuff. No more manually adding search paths for new versions of GCC :)<br><br>I would also suggest adding a relative search path for plain MinGW.org, so that they reap the benefits for this as well. But that is up to you.<br>
 </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
2. clang doesn't add all the necessary paths when it comes to<br>
<a href="http://mingw.org" target="_blank">mingw.org</a>, it only includes c:/mingw/include (hello world will fail to<br>
compile due to missing stddef.h). I added<br>
c:\MinGW\lib\gcc\mingw32\x.x.x\include and<br>
c:\MinGW\lib\gcc\mingw32\x.x.x\include-fixed directories. The order in<br>
which they are added is the same one that <a href="http://mingw.org" target="_blank">mingw.org</a> uses (got this<br>
from gcc -xc -E -v -), this is why the call to<br>
AddPath("c:/mingw/include") is inside the loop even though it doesn't<br>
depend on any loop variable.<br>
<br>
I have no idea how this plays with MSYS and Cygwin, but it shouldn't<br>
change the logic, I'm only adding more paths. The code doesn't follow<br>
the 80 column width convention, this is something I'll change before<br>
submitting the patch to cfe-commits, it's just easier to read this<br>
way.<br></blockquote><div><br>Thanks for doing this!<br><br>Ruben <br></div></div><br>