[LLVMdev] CMake build maturity

Óscar Fuentes ofv at wanadoo.es
Wed Jun 3 08:18:46 PDT 2009


Frits van Bommel <fvbommel at wxs.nl> writes:

> Paul Melis wrote:
>> Just checked: yup, there's plenty of assert()'s in the headers, so
>> -D_DEBUG will keep those alive.
>> 
>> Interestingly, when configuring with --enable-optimized and
>> --disable-assertions the resulting compilation calls itself a
>> "Release-Asserts build" while all asserts are thrown away, hmmm :)
>
> Yeah, that's "Release-Asserts" as in "Release minus asserts".
>
> This has caused confusion before...

Committed a change for the cmake build that implements the option
LLVM_ENABLE_ASSERTS. Defaults to ON if and only if CMAKE_BUILD_TYPE is
Release.

-- 
Óscar




More information about the llvm-dev mailing list