[cfe-dev] Using C++11 <atomic> with Clang SVN

Eli Friedman eli.friedman at gmail.com
Thu Apr 19 12:11:00 PDT 2012


On Thu, Apr 19, 2012 at 11:52 AM, Matthias Vallentin <vallentin at icir.org> wrote:
>> Make sure you check out libc++ into llvm/projects/libcxx/, and use
>> "make install", so clang uses the right libcxx.
>
> I tried to check out libc++ into llvm/projects/libcxx and invoking
> configure again. This message during configure gives me pause though:
>
>    configure: WARNING: Unknown project (libcxx) won't be configured
> automatically
>
> Even passing --enable-libcpp to configure does not get rid of this
> warning. In fact, the Makefile in llvm/projects mentions:
>
>    # Don't build libcxx, it isn't designed to be built directly.
>    DIRS := $(filter-out libcxx,$(DIRS))
>
> Should clang pick up libc++ automatically or am I supposed to install it
> manually first?

The Makefile that actually does the relevant stuff is in
clang/runtime/libcxx/.  You shouldn't need to install libc++
separately.

-Eli




More information about the cfe-dev mailing list