[cfe-dev] compile Clang with debug info
xiaohui chen via cfe-dev
cfe-dev at lists.llvm.org
Tue Oct 6 08:10:14 PDT 2015
Thanks!
Yes, DCMAKE_BUILD_TYPE=DEBUG works perfectly. BTW, according to my test
'DEBUG' is off by default.
On Mon, Oct 5, 2015 at 10:53 AM, Alexander Droste <
alexander.ra.droste at googlemail.com> wrote:
> I think 'DEBUG' is the default but
> you can also pass '-DCMAKE_BUILD_TYPE=DEBUG' explicitly
> to CMake. See here for other options:
> http://llvm.org/docs/GettingStarted.html
>
> -Alex
>
> On 05.10.15 19:45, xiaohui chen via cfe-dev wrote:
>
>> Hi,
>>
>> I compile clang from source following the steps on the website like:
>>
>>
>> 1. cd build/
>> 2. cmake -G “Unix Makefiles” ..
>> 3. make
>>
>>
>> Now I want to get the binary code with debugging information, so what
>> should I do?
>>
>> I tried "cmake -G "Unix Makefiles" --enable-debug-symbols ..", but it
>> does
>> not work.
>>
>> Best
>> xiaohui
>>
>>
>>
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20151006/975e69bf/attachment.html>
More information about the cfe-dev
mailing list