<div dir="ltr">Hi,<div><br></div><div>I am writing a libtooling tool.</div><div><br></div><div>In the command line we can use '-include' to Include file before parsing. My questions is what is the corresponding API</div><div>to do this?</div><div><br></div><div>I tried Opts.Includes.push_back , but it seems not working.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 6, 2015 at 8:10 AM, xiaohui chen <span dir="ltr"><<a href="mailto:xchen198812@gmail.com" target="_blank">xchen198812@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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="HOEnZb"><div class="h5"><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><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>
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><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>
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>
</div></div></blockquote></div><br></div>