[cfe-dev] Building the LibC++ libraries

Martin J. O'Riordan via cfe-dev cfe-dev at lists.llvm.org
Mon Feb 1 12:13:49 PST 2016


Thanks Dan, this is good news :)

 

            MartinO

 

From: Dan Albert [mailto:danalbert at google.com] 
Sent: 01 February 2016 17:47
To: Martin J. O'Riordan <martin.oriordan at movidius.com>
Cc: cfe-dev <cfe-dev at lists.llvm.org>
Subject: Re: [cfe-dev] Building the LibC++ libraries

 

Building one C++14 library is sufficient. It's just the headers that need to be compatible with old standard versions, and Marshall and Eric are careful to keep them that way.

I'm pretty sure you couldn't build the library as C++98 even if you wanted to.

On Feb 1, 2016 08:17, "Martin J. O'Riordan via cfe-dev" <cfe-dev at lists.llvm.org <mailto:cfe-dev at lists.llvm.org> > wrote:

We currently build the LibC++ libraries with an alternative build system, mainly because historically it was not possible to build the library for a cross-compiler.  That of course is getting better with the wholesale move over to CMake.

 

At the moment we build the library with ‘-std=c++11’.   This seems to produce a library that is valid for linking with programs compiled for C++98 and C++11, and very few people seem to be compiling their code with C++14.  We have no had reports of problems.

 

But should I really be building 3 versions of the library, one each for C++98, 11 and 14?  Or will a C++14 built library be link compatible for all the earlier dialects?

 

Thanks,

 

            MartinO

 


_______________________________________________
cfe-dev mailing list
cfe-dev at lists.llvm.org <mailto:cfe-dev at lists.llvm.org> 
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160201/7d0e8df3/attachment.html>


More information about the cfe-dev mailing list