<div dir="ltr">Thanks!<div>Yes, <span style="font-size:12.8px">DCMAKE_BUILD_TYPE=DEBUG works perfectly. BTW, according to my test 'DEBUG' is off by default.</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 5, 2015 at 10:53 AM, Alexander Droste <span dir="ltr"><<a href="mailto:alexander.ra.droste@googlemail.com" target="_blank">alexander.ra.droste@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think 'DEBUG' is the default but<br>
you can also pass '-DCMAKE_BUILD_TYPE=DEBUG' explicitly<br>
to CMake. See here for other options:<br>
<a href="http://llvm.org/docs/GettingStarted.html" rel="noreferrer" target="_blank">http://llvm.org/docs/GettingStarted.html</a><br>
<br>
-Alex<span class=""><br>
<br>
On 05.10.15 19:45, xiaohui chen via cfe-dev wrote:<br>
</span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
Hi,<br>
<br>
I compile clang from source following the steps on the website like:<br>
<br>
<br></span>
    1. cd build/<br>
    2. cmake -G “Unix Makefiles” ..<br>
    3. make<span class=""><br>
<br>
<br>
Now I want to get the binary code with debugging information, so what<br>
should I do?<br>
<br>
I tried "cmake -G "Unix Makefiles"  --enable-debug-symbols ..", but it does<br>
not work.<br>
<br>
Best<br></span><span class="">
xiaohui<br>
<br>
<br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
<br>
</span></blockquote>
</blockquote></div><br></div>