<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Nov 11, 2010, at 2:36 PM, Amer Agovic wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Here is it again.<br>Take a look and if acceptable please integrate. Please let me know.<br><br>Why did I bother:<br>  1.) I have MinGW under c:\projects\bin which is not default<br>  2.) I use TDM Dwarf compilation which changes lib paths to append -dw2 at the end<br><br>This addition basically adds code to parse env variables like PATH and extract the root.<br>It also queries GCC for certain things. Similar code can be added for other supported compilers.<br></blockquote></div><br><div>Couple of quick comments:</div><div><br></div><div>a) Please use C++ comments</div><div>b) You probably want to use StringRef instead of std::string.</div><div><br></div><div>I'm sure Daniel is going to have more comments, and probably me too when I get a chance to look at it a bit more.</div><div><br></div><div>-eric</div></body></html>