<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 24, 2014 at 2:09 PM, Dmitri Gribenko <span dir="ltr"><<a href="mailto:gribozavr@gmail.com" target="_blank">gribozavr@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">On Mon, Mar 24, 2014 at 9:49 AM, Alexey Samsonov <<a href="mailto:samsonov@google.com">samsonov@google.com</a>> wrote:<br>

> Submitted r204593.<br>
<br>
Thank you!  It did fix compiling the tests on the buildbot, but I am<br>
surprised that linking succeeded.  Maybe that is because we are not<br>
using any C++11 features that require symbols from the newer<br>
libstdc++.  But it would be future-proof to change clang_link_shared()<br>
to use CMAKE_CXX_FLAGS as well.<br></blockquote><div><br></div><div>Is there really a logic in Clang that would choose between old and newer libstdc++ versions</div><div>depending on the value of -std= flag?</div><div><br>
</div><div>I hope to get rid of clang_compile and clang_link_shared horridness soon by switching</div><div>to LLVM_BUILD_EXTERNAL_COMPILER_RT=ON that would use just-built Clang to configure/build compiler-rt.</div><div><br>
</div><div>So, your use case might be interesting. Can you build with -DLLVM_BUILD_EXTERNAL_COMPILER_RT=ON and</div><div>check if "make check-compiler-rt" works for you? If not, then we'd have to propagate *some* CMAKE_CXX_FLAGS</div>
<div>to configuration step of compiler-rt project, but we won't need most of the extra flags stuffed into CMAKE_CXX_FLAGS</div><div>by LLVM/Clang CMake files. It might be a problem (sigh). </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<div class=""><div class="h5"><br>
Dmitri<br>
<br>
--<br>
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if<br>
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <<a href="mailto:gribozavr@gmail.com">gribozavr@gmail.com</a>>*/<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Alexey Samsonov, MSK</div>
</div></div>