<p dir="ltr">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.</p>
<p dir="ltr">I'm pretty sure you couldn't build the library as C++98 even if you wanted to.</p>
<div class="gmail_quote">On Feb 1, 2016 08:17, "Martin J. O'Riordan via cfe-dev" <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-IE" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Book Antiqua","serif"">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.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Book Antiqua","serif""><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Book Antiqua","serif"">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.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Book Antiqua","serif""><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Book Antiqua","serif"">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?<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Book Antiqua","serif""><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Book Antiqua","serif"">Thanks,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Book Antiqua","serif""><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Book Antiqua","serif"">            MartinO<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Book Antiqua","serif""><u></u> <u></u></span></p></div></div><br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div>