[cfe-dev] Clang for Windows and Boost

Edward Diener eldlistmailingz at tropicsoft.com
Fri Mar 18 09:42:35 PDT 2011


On 3/18/2011 12:30 PM, Douglas Gregor wrote:
>
> On Mar 18, 2011, at 8:52 AM, Edward Diener wrote:
>
>> On 3/17/2011 10:30 PM, Óscar Fuentes wrote:
>>> John McCall<rjmccall at apple.com>   writes:
>>>
>>>>>> What do you mean that clang on mingw lacks support ?
>>>>>
>>>>> "lacks *eh* support".
>>>>>
>>>>> eh = exception handling.
>>>>
>>>> Out of curiosity, what's the mingw exception model?
>>>
>>> Last time I checked, official MinGW was configured with setjump/longjump
>>> while other distributions used DWARF2. The latter offers better
>>> performance but fails to work when it has to unwind a stack frame that
>>> belongs to a Windows function (that's the case when you throw an
>>> exception from a callback.)
>>
>> I am stilling searching for the answer whether or not clang, built with
>> MingW/MSYS under Windows, is currently a workable version under Windows
>> with the header files and libraries MingW and gcc supplies. Do you or
>> anybody know this ? Or should I still be waiting on future clang
>> development for this to become a reality ?
>
> It's not going to work perfectly out of the box, especially since we are missing exception-handling support for MinGW.
>
> If you're willing to dig into the guts of the compiler, debug issues, and write patches, that's great. I don't know if it's a day's worth of work or a month's worth of work. But if you just want to use the compiler, I suggest using one of the better-supported platforms and hoping that someone else is going to do the work to make Clang viable on MinGW.

OK, it sounds like waiting for some future version of clang on Windows 
with MingW is best. Good luck in making that happen. I will be a great 
boon for Windows programmers to be able to use clang under Windows and 
not just under Linux.




More information about the cfe-dev mailing list