arrowdodger <6yearold at gmail.com> writes:
> On Thu, Jan 27, 2011 at 3:50 PM, Óscar Fuentes <ofv at wanadoo.es>
wrote:
>
>> How do they build their frontend?
>>
> They are running llvm-config. And it gives -pedantic, if it was generated
by
> CMake build. If i build LLVM with autoconf, then everything is fine.
>
> Here is output of llvm-config built by CMake:
>
>> ~/.local/llvm/bin/llvm-config --cflags
>> -I/usr/home/arr/.local/llvm/include -O3 -DNDEBUG -D__STDC_LIMIT_MACROS
>> -D__STDC_CONSTANT_MACROS -Wall -W -Wno-unused-parameter -Wwrite-strings
>> -pedantic -Wno-long-long
>>
> Note -pedantic here.
I agree that it doesn't make sense to put -pedantic on the output of
`llvm-config --cflags'
I'll remove that and -Wall too.
> And here is output of llvm-config built by autoconf:
>
>> ./llvm-config --cflags
>> -I/usr/home/arr/projects/llvm/llvm_1/include
>> -I/usr/home/arr/projects/llvm/llvm_1/include -D_DEBUG -D_GNU_SOURCE
>> -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS -O2 -fPIC
>>
> There is no -pedantic here.
Has the autconf build an option similar to LLVM_ENABLE_PEDANTIC ? If
yes, what's its default?