[PATCH] CMake: Add ability to disable building LLVM utils

Chris Bieneman cbieneman at apple.com
Thu Mar 27 10:34:37 PDT 2014


There is an LLVM_INSTALL_TOOLCHAIN_ONLY option which adds only the toolchain tools to the install list, but you still end up building the non-toolchain tools and utils. I could rework the patch to instead be LLVM_BUILD_TOOLCHIAN_ONLY if that is a preferable route.

-Chris

On Mar 26, 2014, at 10:08 PM, Reid Kleckner <rnk at google.com> wrote:

> Don't we already have functionality for this?  LLVM_BUILD_TOOLCHAIN_ONLY or something like that?  Can we extend that with various levels instead?
> 
> 
> On Wed, Mar 26, 2014 at 8:07 PM, Chris Bieneman <cbieneman at apple.com> wrote:
> For shipping products that include llvm libraries and tools we want the ability to not build some of the LLVM utilities (FileCheck, FileUpdate, count, not, llvm-lit, and yaml-bench).
> 
> This patch accomplishes this by adding a new CMake option LLVM_INCLUDE_UTILS which excludes those subdirectories. This patch also adds an error if you set LLVM_INCLUDE_UTILS to OFF while setting LLVM_INCLUDE_TESTS to ON, because including tests necessitates including the utils.
> 
> -Chris
> 
> Files:
>   CMakelists.txt
> 
> 
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140327/9a478179/attachment.html>


More information about the llvm-commits mailing list