[cfe-dev] Building LLVM and clang with different options

Reid Kleckner rnk at google.com
Fri May 29 10:52:18 PDT 2015

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.

On Fri, May 29, 2015 at 10:21 AM, Vinay Sajip <vinay_sajip at yahoo.co.uk>

> I'm trying to build LLVM with a build type of MinSizeRel and clang with a
> build type of Debug. I've cloned llvm and clang (into llvm/tools/clang),
> created a build directory parallel to llvm and from it, and invoked 'cmake
> -G "Unix Makefiles" ../llvm'. I changed (in build/CMakeCache.txt)
> CMAKE_BUILD_TYPE to MinSizeRel and ran make - both LLVM and clang are built
> successfully. I now want to build clang in Debug mode, but don't see any
> obvious way of doing this - changing the CMAKE_BUILD_TYPE to Debug causes
> LLVM to be rebuilt in Debug mode, too. Is there an easy way to do this via
> CMake, or is some other approach required?
> Regards,
> Vinay Sajip
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150529/f384d2e1/attachment.html>

More information about the cfe-dev mailing list