<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">> Recently I think I found a bug in llvm's CMakeLists.(I use llvm 3.1svn and<br>

> Clang 3.1) I follow the normal way to try to compile an application that<br>
> utilize both clang and llvm: I ./autogen.sh it, ./configure it and make it.<br>
> But the make fails. At last I found out the failure is because that the<br>
> Makefile's CXXFLAGS does not contain -fno-rtti option which is needed by<br>
> the compilation.<br>
<br>
</div>Is it? In my experience, it isn't. Please show the relevant command<br>
generated by your makefile and the associated error message(s).<br></blockquote><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
RTTI is an on/off option that changes per LLVM library, so setting<br>
-fno-rtti for using LLVM makes no sense. VMCore and Support have -frtti<br>
while most of the rest have -fno-rtti. The switch is decided on<br>
cmake/modules/LLVMProcessSources.cmake depending on the value of<br>
LLVM_REQUIRES_RTTI.<br>
<br>
<br></blockquote><div>Hello! I'm sorry, because I've already solved the build problem with the mentioned app manually, now it's not very convenient for me to reproduce the error for the moment. I agree that "RTTI is an on/off option". But I think the point of the problem I mentioned here is: some applications that depend on llvm and clang use llvm-config to configure their Makefile, while the llvm-config cannot provide the correct information they need. And this is what actually happened under my platform.<br>
<br>Regards,<br>TangKK<br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br>