[cfe-dev] clang dependence on gcc for assembler even with -filetype=obj

Aaron Gray aaronngray.lists at gmail.com
Wed Jun 9 10:37:47 PDT 2010


On 9 June 2010 17:41, Chris Lattner <clattner at apple.com> wrote:

>
> On Jun 9, 2010, at 9:39 AM, Aaron Gray wrote:
>
> On 9 June 2010 17:29, Chris Lattner <clattner at apple.com> wrote:
>
>>
>> On Jun 9, 2010, at 9:20 AM, Aaron Gray wrote:
>>
>> > Hi,
>> >
>> > I just compiled llvm+clang with MSVC++ and tried using the -filetype=obj
>> but clang seems to be dependent on GCC.
>>
>> 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.
>
>
> Hi Chris,
>
> Congratulations on your ACM SIGPLAN award.
>
> Sorry to be dumb but how or where do I define a ToolChain ?
>
>
> Take a look at clang/docs/DriverInternals.html
>
>
Okay I have to study the code a bit, but basically I have defined a
Win32HostInfo class, associated creator, and Driver::GetHostInfo() creator
entry.

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

Aaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100609/c230e1aa/attachment.html>


More information about the cfe-dev mailing list