[cfe-dev] compile Clang with debug info
xiaohui chen via cfe-dev
cfe-dev at lists.llvm.org
Thu Oct 8 08:18:07 PDT 2015
Hi,
I am writing a libtooling tool.
In the command line we can use '-include' to Include file before parsing.
My questions is what is the corresponding API
to do this?
I tried Opts.Includes.push_back , but it seems not working.
On Tue, Oct 6, 2015 at 8:10 AM, xiaohui chen <xchen198812 at gmail.com> wrote:
> 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/20151008/3087afcf/attachment.html>
More information about the cfe-dev
mailing list