Hi Mr/Mz,<div><br></div><div><font class="Apple-style-span" face="simhei, sans-serif">I have built and installed llvm-2.8 in debug mode using:</font></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="line-height: 23px; "><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial, ËÎÌå; color: rgb(102, 102, 102); ">
>SRC_DIR/configure --prefix=INS_DIR --enable-debug-runtime  --disable-optimized --enable-debug-symbols</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial, ËÎÌå; color: rgb(102, 102, 102); ">
>make install</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(102, 102, 102); "><font class="Apple-style-span" face="simhei, sans-serif"><br>
</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><font class="Apple-style-span" face="arial, helvetica, sans-serif">It seems the NDEBUG controls a lot of print-out of debug information, by using DEBUG() or dbgs(). </font></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><font class="Apple-style-span" face="arial, helvetica, sans-serif">And it is said that NDEBUG is in enabled in debug mode, but I find it does not work and the -debug option is not recognized. How should I enable NDEBUG or enable DEBUG() and dbgs()? Should I define NDEBUG in the .cpp files related, when I need the debug information?</font></p>
<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><font class="Apple-style-span" face="arial, helvetica, sans-serif"><br>
</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><font class="Apple-style-span" face="arial, helvetica, sans-serif"> </font></p>
</span>-- <br>Best regards,<div><br></div><div>Li Qingan</div><br>
</div>