<div dir="ltr">I do as Reid describes. I build a "release" build that I install into /usr/local/... and then a debug build that I install into a different directory. When I then build my own project (that uses LLVM), I use the /usr/local version to perform the build, but use the debug build for the libraries and headers, such that I get the debug info and asserts that help me tell me what I've done wrong (inevitably I do several times for each new feature I'm implementing).<div><br></div><div>--</div><div>Mats</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 29 May 2015 at 18:52, Reid Kleckner <span dir="ltr"><<a href="mailto:rnk@google.com" target="_blank">rnk@google.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">In general, this is too difficult to be worth the trouble. You can attempt it by doing a standalone build, where you install LLVM to some local prefix, checkout clang separately outside of llvm, put LLVM's bin directory on PATH, and try to configure it that way.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 29, 2015 at 10:21 AM, Vinay Sajip <span dir="ltr"><<a href="mailto:vinay_sajip@yahoo.co.uk" target="_blank">vinay_sajip@yahoo.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm trying to build LLVM with a build type of MinSizeRel and clang with a<br>
build type of Debug. I've cloned llvm and clang (into llvm/tools/clang),<br>
created a build directory parallel to llvm and from it, and invoked 'cmake<br>
-G "Unix Makefiles" ../llvm'. I changed (in build/CMakeCache.txt)<br>
CMAKE_BUILD_TYPE to MinSizeRel and ran make - both LLVM and clang are built<br>
successfully. I now want to build clang in Debug mode, but don't see any<br>
obvious way of doing this - changing the CMAKE_BUILD_TYPE to Debug causes<br>
LLVM to be rebuilt in Debug mode, too. Is there an easy way to do this via<br>
CMake, or is some other approach required?<br>
<br>
Regards,<br>
<br>
Vinay Sajip<br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>