[cfe-dev] compile Clang with debug info

Alexander Droste via cfe-dev cfe-dev at lists.llvm.org
Mon Oct 5 10:53:16 PDT 2015


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
>



More information about the cfe-dev mailing list