<div dir="ltr">I think the short version is that Windows support in libc++ isn't really there yet. The core data structures and algorithms have been ported, but the new C++11 threading library stuff relies on pthreads.<div><br></div><div>In a more general sense, most LLVM projects, including clang and libc++, support both the MinGW toolchain and the MSVC toolchain. The more your toolchain (system headers, compiler builtins, etc) diverges from one of these two major ones, the less likely it is that things will work.</div><div><br></div><div>If you want to compile libc++ in a way that assumes that "posix works", then you probably want to configure it to target mingw and make changes from there.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 18, 2015 at 7:47 PM, Andrew Parker <span dir="ltr"><<a href="mailto:andrew.j.c.parker@gmail.com" target="_blank">andrew.j.c.parker@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I was wondering if there's any definitive source of information on this.  I'm aware of this page: <a href="http://clang.llvm.org/docs/MSVCCompatibility.html" target="_blank">http://clang.llvm.org/docs/MSVCCompatibility.html</a> but that is all I've managed to find so far.  This page seems to imply that libcxx is buildable (or there's a WIP to make it so) with MSVC.  Is that the case?<div><br></div><div>What other Windows builds are supported, e.g. can I build with clang and windows sys headers?  I presume I can build with MingW? <br><div><div><br></div><div>FYI I'm currently trying to build libcxx using MSVC but with custom "posix-like" sys headers and runtime.  Obvious blockers to me doing this are things like the lack of intrinsic support for atomics, e.g. __sync_add_and_fetch.  I can solve these issue fairly easily but before I do I'd like to understand if I need to.</div></div></div><div><br></div><div>Feel free to shunt me to an appropriate doc, page or post if this is a dupe.</div></div>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>