[PATCH] [libcxx] Distinguish between MSVC, MSVCRT, and Windows-specific code

Reid Kleckner rnk at google.com
Thu Aug 8 20:53:31 PDT 2013

On Thu, Aug 8, 2013 at 10:13 PM, Nico Rieck <nico.rieck at gmail.com> wrote:

> clang's new clang-cl.exe driver apears to NOT define _MSC_VER by default
>> either. If any clang variant or g++ does define _MSC_VER (I don't mean
>> MS's
>> cl.exe which I know does)
> Sounds like a bug.

I agree.  I've always built clang with MSVC, so I didn't realize that the
defaults for -fms-compatibility etc were affected by clang's host compiler.

I tried to build clang with mingw and cmake last week, but it didn't work
out of the box.  In particular, the code in lib/Support/Windows/*.inc
failed to compile because it tries to access some POSIX-y functions with
leading underscores, which mingw doesn't provide.  Is this a known
configuration problem with a solution?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130808/7f027603/attachment.html>

More information about the cfe-commits mailing list