<div style="font-family: arial, helvetica, sans-serif; font-size: 10pt"><div dir="ltr">On Mon, Dec 3, 2012 at 7:46 PM, Sean Silva <span dir="ltr"><<a href="mailto:silvas@purdue.edu" target="_blank">silvas@purdue.edu</a>></span> wrote:<br>
<div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Ah, I see, the initial review precedes my gmail log.<br>
<br>
The natural thing for me seems like it would just be to add a<br>
changeDirectory() function to libSystem. Was this not considered?<br></blockquote><div><br></div><div>+Michael</div><div>There was  definitely some talk about mid- / long-term strategies, but I think we didn't find a good short-term solution beside adding the non-nice system includes.</div>

<div><br></div><div>One thing we'll need to do anyway is make clang thread-safe regarding chdir, which means that we'll need an interface that supports keeping state between calls so that changes to the directory (like symlinks changing during a compile) do not affect the compilation.</div>
<div><br></div><div>Cheers,</div><div>/Manuel</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<span><font color="#888888"><br>
-- Sean Silva<br>
</font></span><div><div><br>
On Mon, Dec 3, 2012 at 5:11 AM, Manuel Klimek <<a href="mailto:klimek@google.com" target="_blank">klimek@google.com</a>> wrote:<br>
> On Mon, Dec 3, 2012 at 8:23 AM, Sean Silva <<a href="mailto:silvas@purdue.edu" target="_blank">silvas@purdue.edu</a>> wrote:<br>
>><br>
>> ><br>
>> > <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Tooling/Tooling.cpp?view=markup" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Tooling/Tooling.cpp?view=markup</a><br>
>><br>
>> Ugh. Why is this directly including system headers? That's a blatant<br>
>> violation of<br>
>> <<a href="http://llvm.org/docs/SystemLibrary.html#don-t-include-system-headers" target="_blank">http://llvm.org/docs/SystemLibrary.html#don-t-include-system-headers</a>>.<br>
>><br>
>> Manuel, what kind of review did this code get before being checked in?<br>
>> I can't seem to find any review thread leading up to r154008.<br>
><br>
><br>
> <a href="http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20120123/051828.html" target="_blank">http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20120123/051828.html</a><br>
> (note that this review went over 4 months, so the mail archive can't follow<br>
> it through; use site:<a href="http://lists.cs.uiuc.edu" target="_blank">lists.cs.uiuc.edu</a> "[PATCH] Implements support to run<br>
> standalone tools" in your favorite search engine to find all parts of the<br>
> review)<br>
><br>
> Note also that the lines you object to are not in the original patch. The<br>
> patch that made those includes necessary was reviewed here:<br>
> <a href="http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20120507/057330.html" target="_blank">http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20120507/057330.html</a><br>
> (again, the mail archive doesn't tell the full story)<br>
><br>
> If you have a better solution, feel free to make suggestions.<br>
><br>
> Cheers,<br>
> /Manuel<br>
</div></div></blockquote></div><br></div>
</div></div>