<div class="gmail_extra"><div class="gmail_quote">On Wed, Sep 12, 2012 at 11:10 PM, NAKAMURA Takumi <span dir="ltr"><<a href="mailto:geek4civic@gmail.com" target="_blank" class="cremed">geek4civic@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2012/9/13 Chandler Carruth <<a href="mailto:chandlerc@google.com" class="cremed">chandlerc@google.com</a>>:<br>
<div class="im">> On Wed, Sep 12, 2012 at 10:53 PM, NAKAMURA Takumi <<a href="mailto:geek4civic@gmail.com" class="cremed">geek4civic@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Author: chapuni<br>
>> Date: Thu Sep 13 00:53:23 2012<br>
>> New Revision: 163776<br>
>><br>
>> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=163776&view=rev" target="_blank" class="cremed">http://llvm.org/viewvc/llvm-project?rev=163776&view=rev</a><br>
>> Log:<br>
>> InitHeaderSearch.cpp: [mingw] Handle DOSish paths only on Win32 hosts.<br>
><br>
><br>
> No, this is completely wrong. The set of paths to search for headers should<br>
> never have anything to do with the *host*, only the *target*. Please revert<br>
> this and let's actually talk about the problem you're solving here.<br>
<br>
</div>I think Driveletter-based paths would be useless and ignored safely on<br>
non-Win32 hosts (including cygwin). It's host's issue really.<br></blockquote><div><br></div><div>In what way can this possibly be a host issue?</div><div><br></div><div>If I build a Clang binary on my linux machine, and then on a windows machine run it under some magical emulation layer, it will suddenly use these paths.</div>
<div><br></div><div>The header search is a strictly *target* concern, and it should be the same regardless of the host on which the compiler is built.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">> If you're trying to clean up the mingw header search, please as a first step<br>
> let's move it to the Driver.<br>
<br>
</div>I would like bots (esp., cross things) let fine at first.</blockquote><div><br></div><div>I think this is the wrong sequence. I would much prefer you get the architecture right than add hacks now that we have to some how undo later just to preserve bot behavior that may not have been the correct behavior.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> But you are<br>
right, I might reconstruct headersearch with moving stuff to the<br>
driver. Thank you.<br>
<br>
ps. I wonder how sysroot stuff could be applied for mingw targets...<br>
<br>
...Takumi<br>
</blockquote></div><br></div>