<div dir="ltr"><img width="0" height="0" class="mailtrack-img" alt="" style="display:flex" src="https://mailtrack.io/trace/mail/e66affa807023acfc0655f473503463bf0130a82.png?u=407906">Hi Vedant,<div><br></div><div>  Clang + llvm build together takes around 26 GB. I was curious if there are any tricks to reduce the size as I need only C and C++ languages in frontend and RISCV ISA for llvm backend. For the backend I am already passing -DLLVM_TARGETS_TO_BUILD=RISCV to generate the backend only for RISCV. I was curious if I can do something to reduce the size of the clang build.</div><div><br></div><div>  Thanks,</div><div><br></div><div>Best Regards,</div><div>Nitish</div><div><br><br><br>‌</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 22, 2017 at 1:47 PM, Vedant Kumar <span dir="ltr"><<a href="mailto:vsk@apple.com" target="_blank">vsk@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">- llvm-dev, + cfe-dev (moving off llvm-dev)<div><br></div><div>Hi Nitish,</div><div><br><div><span class=""><blockquote type="cite"><div>On Sep 22, 2017, at 10:32 AM, Nitish Srivastava via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="m_3209270154627821229Apple-interchange-newline"><div><div dir="ltr"><img width="0" height="0" class="m_3209270154627821229mailtrack-img" alt="" style="display:flex" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"><div>Hi,<br><br> I am trying to build clang, however the build size is quite large. As clang supports non-C family languages as well ( e.g. Java, Fortran ),</div></div></div></blockquote><div><br></div></span><div>Clang does not accept Java or Fortran code. It links llvm, which has some language-specific support for calling conventions, but excising this support might not save you much in terms of binary size.</div><span class=""><br><blockquote type="cite"><div><div dir="ltr"><div> is there a way to turn that off during the build. I just want to have support for C and C++ and don't care about other languages.<br><br>Is there a CMake option that needs to be set to do that??<br></div></div></div></blockquote><div><br></div></span><div>What are you measuring exactly? Is it the size of the build directory, the size of the clang binary itself, or something else?</div><div><br></div><div>How small does clang need to be for your purposes?</div><div><br></div><div>vedant</div><br><blockquote type="cite"><div><span class=""><div dir="ltr"><div><br>Thanks a lot!<br><br>Best Regards, <br><br>Nitish<br><br><br>‌</div></div></span>
______________________________<wbr>_________________<br>LLVM Developers mailing list<br><a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br></div></blockquote></div><br></div></div></blockquote></div><br></div>