[cfe-dev] Building the LibC++ libraries
Dan Albert via cfe-dev
cfe-dev at lists.llvm.org
Mon Feb 1 09:46:50 PST 2016
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> 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
> 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/5e7d4e09/attachment.html>
More information about the cfe-dev
mailing list