<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">You don't actually need to change your CMake configuration to reduce the number of components you build. Just don't build the `all` target, instead build the components you need.<div class=""><br class=""></div><div class="">Alternatively you can set the CMake variable `LLVM_DISTRIBUTION_COMPONENTS` to the list of things you need, which will result in the generation of a `distribution` target which will build just those pieces.</div><div class=""><br class=""></div><div class="">-Chris<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Mar 29, 2019, at 3:19 PM, Liviu Prodea via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div class="">I configure <span class="">LLVM </span>build with this command</div><div class=""><br class=""></div><div class=""><span class="">cd llvm-8.0.0.src & md buildsys-x64-MT & cd buildsys-x64-MT & cmake -G "Ninja" -DLLVM_TARGETS_TO_BUILD=X86 -DCMAKE_BUILD_TYPE=Release -DLLVM_USE_CRT_RELEASE=MT -DLLVM_ENABLE_RTTI=1 -DLLVM_ENABLE_TERMINFO=OFF -DCMAKE_INSTALL_PREFIX=../x64-MT ..</span></div><div class=""><span class=""><br class=""></span></div><div class=""><span class="">The number of build objects grew with every major release to 1660 for LLVM 7 and 1761 for LLVM 8.<br class=""></span></div><div class=""><span class=""><br class=""></span></div><div class=""><span class="">I only need the components requested here</span></div><div class=""><span class=""><br class=""></span></div><div class=""><a href="https://gitlab.freedesktop.org/mesa/mesa/blob/master/scons/llvm.py#L103" rel="nofollow" target="_blank" class="">https://gitlab.freedesktop.org/mesa/mesa/blob/master/scons/llvm.py#L103</a></div><div class=""><br class=""></div><div class="">After reading</div><div class=""><br class=""></div><div class=""><a href="https://llvm.org/devmtg/2015-04/slides/eurollvm-2015-build.pdf" rel="nofollow" target="_blank" class="">https://llvm.org/devmtg/2015-04/slides/eurollvm-2015-build.pdf</a></div><div class=""><br class=""></div><div class="">and</div><div class=""><br class=""></div><div class=""><a href="https://llvm.org/docs/CMake.html" rel="nofollow" target="_blank" class="">https://llvm.org/docs/CMake.html</a></div><div class=""><br class=""></div><div class="">I found these options to be relevant:<span class=""> LLVM_DYLIB_COMPONENTS, <span class="">LLVM_BUILD_LLVM_DYLIB, <span class="">LLVM_LINK_LLVM_DYLIB, <span class="">LLVM_BUILD_TOOLS and <span class="">LLVM_INCLUDE_TOOLS. Unfortunately <span class=""><span class=""><span class=""><span class=""><span class="">LLVM_DYLIB_COMPONENTS</span></span> depends on LLVM_BUILD_LLVM_DYLIB which doesn't support MSVC, <span class=""><span class=""><span class=""><span class=""><span class="">I can turn off LLVM_BUILD_TOOLS and<span class=""><span class=""><span class=""><span class=""><span class=""> <span class="">LLVM_INCLUDE_TOOLS</span></span></span></span></span></span> if I figure out how to filter unneeded components as I would no longer need llvm-config anymore.</span></span></span></span></span></span></span></span></span></span></span></span> </span><br class=""></div></div></div>_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev<br class=""></div></blockquote></div><br class=""></div></body></html>