[LLVMdev] llvm-config --cxxflags does not give the result the configuration script wants?

=?utf-8?Q?=C3=93scar_Fuentes?= ofv at wanadoo.es
Wed Mar 14 06:00:16 PDT 2012


Jun-qi Deng <dengjunqi06323011 at gmail.com> writes:

>> Is it? In my experience, it isn't. Please show the relevant command
>> generated by your makefile and the associated error message(s).
>>
>
>> RTTI is an on/off option that changes per LLVM library, so setting
>> -fno-rtti for using LLVM makes no sense. VMCore and Support have -frtti
>> while most of the rest have -fno-rtti. The switch is decided on
>> cmake/modules/LLVMProcessSources.cmake depending on the value of
>> LLVM_REQUIRES_RTTI.
>>
>>
>> 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.

If you read again my post, you'll see that I doubt that the absence of
-fno-rtti on the output of llvm-config is the problem. Using -fno-rtti
is an internal decision taken while building LLVM and it makes no sense
to impose it on third party code. In short: LLVM does not require
-fno-rtti from the projects that link to it.

Most likely, you were experiencing link problems on *your* code that
were resolved by using -fno-rtti. But as you are not interested on
investigating the issue, we'll never know for sure.



More information about the llvm-dev mailing list