<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="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">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>