[cfe-dev] [LLVMdev] RFC: LLVM should require a working C++11 <thread>, <mutex>, and <atomic>

Chandler Carruth chandlerc at google.com
Wed Sep 24 10:11:00 PDT 2014


On Wed, Sep 24, 2014 at 8:48 AM, Óscar Fuentes <ofv at wanadoo.es> wrote:

> David Chisnall <David.Chisnall at cl.cam.ac.uk> writes:
>
> > <atomic> is trivial, as most of the support is provided by the
> > compiler. As of Vista, Windows comes with some quite sane primitives
> > for implementing <mutex> and <thread>, so it would only be 1-2 days of
> > work for someone to write the implementation for libc++.
>
> Forcing Clang to depend on libc++ makes things quite complicated for the
> end user. For the Windows case, building Clang without cross-compiling
> could be impossible, if it requires that libc++ must be compiled by
> Clang.


The only way Clang would depend on libc++ is if you weren't able or willing
to use one of the other host toolchains to cross to windows. Both mingw-w64
and the threads-posix stuff which supports C++11 <thread> would work fine
as well.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140924/5d3ee1ce/attachment.html>


More information about the cfe-dev mailing list