Hi Li Qingan,
Thanks for your last reply.
I have made a critical mistake when I stated my question in last email.
I built llvm in debug mode, but the NDEBUG seemed to be still defined, such that
the -debug option is not enabled.
I have restated my configuration below.
you need to configure with --enable-assertions
In spite of the name, NDEBUG is not related to optimization or debugging
symbols, it means that checking (aka assertions) are disabled. Probably
it should be renamed to NASSERT
Ciao, Duncan.
Hi Li Qingan,
Thanks for your last reply.
I have made a critical mistake when I stated my question in last email.
I built llvm in debug mode, but the NDEBUG seemed to be still defined, such that
the -debug option is not enabled.
I have restated my configuration below.
you need to configure with --enable-assertions
In spite of the name, NDEBUG is not related to optimization or debugging
symbols, it means that checking (aka assertions) are disabled. Probably
it should be renamed to NASSERT
Use of the name NDEBUG to control assertions comes from the C++ (and C) standards. I agree this was not a great choice but deviating from the standard would be more confusing than helpful IMO.