[cfe-dev] FW: Using C++11 in clang-tools-extra Round 2

Vane, Edwin edwin.vane at intel.com
Mon Jan 7 16:58:58 PST 2013


Bringing list up to speed. My mail client lead me to believe this was actually already on the list...

-----Original Message-----
From: thakis at google.com [mailto:thakis at google.com] On Behalf Of Nico Weber
Sent: Monday, January 07, 2013 3:15 PM
To: Vane, Edwin
Subject: Re: [cfe-dev] Using C++11 in clang-tools-extra Round 2

On Mon, Jan 7, 2013 at 12:11 PM, Vane, Edwin <edwin.vane at intel.com> wrote:
> Nico wrote:
> C++11 library support on OS X requires libc++, which in turn means
> that binaries won't run on OS X versions earlier than 10.7. Then again, newer Xcodes don't support 10.6 any more, so it's probably not a big deal. Just wanted to point this out.
>
> [Edwin] Unless there's a lot of users of clang-tools-extra using older versions of OSX I don't we need to worry.
>
> Likewise, libstdc++ doesn't build with -std=libc++ on linux either (with libstdc++ 4.4, 4.6, 4.7). How available is libc++ on linux systems? Do most distros offer a package for it?
>
> [Edwin] I'm not sure I understand. Is the build of libstdc++ part of the standard llvm/clang/tools-extra build? I understood it to be a completely separate project. If so it won't impact using C++11 in tools-extra unless I'm missing the point.

libstdc++ is not part of tools-extra. But if you want to build C++11
code with clang on linux, you need to use libc++ because clang can't parse libstd++ (the default c++ library) in c++11 mode. And if you use
libc++, users now have to have libc++ to run the tools-extra binaries.

>
>>
>> --
>> Edwin Vane
>>   Software Developer
>>   Intel of Canada, Inc.
>>
>>
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list