<div class="gmail_quote">On 9 June 2010 17:41, Chris Lattner <span dir="ltr"><<a href="mailto:clattner@apple.com" target="_blank">clattner@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div style="word-wrap:break-word"><div><div></div><div><br><div><div>On Jun 9, 2010, at 9:39 AM, Aaron Gray wrote:</div><br><blockquote type="cite"><div class="gmail_quote">On 9 June 2010 17:29, Chris Lattner <span dir="ltr"><<a href="mailto:clattner@apple.com" target="_blank">clattner@apple.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><br>
On Jun 9, 2010, at 9:20 AM, Aaron Gray wrote:<br>
<br>
> Hi,<br>
><br>
> I just compiled llvm+clang with MSVC++ and tried using the -filetype=obj but clang seems to be dependent on GCC.<br>
<br>
</div>Clang defaults to using GCC as a portability layer for targets that don't have a ToolChain set up in the driver.  Define a ToolChain for your platform and this goes away.</blockquote><div><br></div><div>Hi Chris,</div>




<div><br></div><div>Congratulations on your ACM SIGPLAN award.</div><div><br></div><div>Sorry to be dumb but how or where do I define a ToolChain ?</div></div></blockquote></div><br></div></div><div>Take a look at clang/docs/DriverInternals.html</div>


<div><br></div></div></blockquote><div><br></div><div>Okay I have to study the code a bit, but basically I have defined a Win32HostInfo class, associated creator, and Driver::GetHostInfo() creator entry.</div><div><br></div>

<div>next a clang::driver::toolchains::Win32 class ? Should there be ("pure") Win32Clang for native Windows and Win32GCC classes for Cygwin and MinGW to use ?</div><div><br></div><div>Aaron</div><div><br></div>
<div>
<br></div><div><br></div></div>