[cfe-dev] Problem building latest clang on Windows for mingw/gcc

Reid Kleckner rnk at google.com
Wed Jan 28 10:12:40 PST 2015


On Wed, Jan 28, 2015 at 7:49 AM, Michael Spencer <bigcheesegs at gmail.com>
wrote:
>
> Sorry about that. I broke that recently. A patch is on it's way to fix
> this in CMake (http://reviews.llvm.org/D7224). For now you just need
> to add:
>
> -D__MSVCRT_VERSION__=0x<at least 90>0 -lmsvcr<at least 90>
>
> mingw links against the OS msvcrt.dll by default, which it really
> shouldn't be doing ;/
>

Sure, but it has been doing that for ~10 years and isn't likely to change
its default. Does anyone need us to call set_abort_behavior on mingw? Can
we just do a feature check for its presence? I'd rather not add this cmake
cruft.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150128/ab652514/attachment.html>


More information about the cfe-dev mailing list