<html><head></head><body><div class="yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div>I configure <span>LLVM </span>build with this command</div><div><br></div><div><span>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><span><br></span></div><div><span>The number of build objects grew with every major release to 1660 for LLVM 7 and 1761 for LLVM 8.<br></span></div><div><span><br></span></div><div><span>I only need the components requested here</span></div><div><span><br></span></div><div><a href="https://gitlab.freedesktop.org/mesa/mesa/blob/master/scons/llvm.py#L103" rel="nofollow" target="_blank">https://gitlab.freedesktop.org/mesa/mesa/blob/master/scons/llvm.py#L103</a></div><div><br></div><div>After reading</div><div><br></div><div><a href="https://llvm.org/devmtg/2015-04/slides/eurollvm-2015-build.pdf" rel="nofollow" target="_blank">https://llvm.org/devmtg/2015-04/slides/eurollvm-2015-build.pdf</a></div><div><br></div><div>and</div><div><br></div><div><a href="https://llvm.org/docs/CMake.html" rel="nofollow" target="_blank">https://llvm.org/docs/CMake.html</a></div><div><br></div><div>I found these options to be relevant:<span> LLVM_DYLIB_COMPONENTS, <span>LLVM_BUILD_LLVM_DYLIB, <span>LLVM_LINK_LLVM_DYLIB, <span>LLVM_BUILD_TOOLS and <span>LLVM_INCLUDE_TOOLS. Unfortunately <span><span><span><span><span>LLVM_DYLIB_COMPONENTS</span></span> depends on LLVM_BUILD_LLVM_DYLIB which doesn't support MSVC, <span><span><span><span><span>I can turn off LLVM_BUILD_TOOLS and<span><span><span><span><span> <span>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></div></div></body></html>