Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Built LLVM about a year ago and not only is the source large but the build artifacts filled my disk to the brim.


There are some workarounds to shrink the size. I think the most noticeable ones being only build certain backends (-DLLVM_TARGETS_TO_BUILD="X86;..."), built as shared libraries (-DBUILD_SHARED_LIBS=ON) and split (DWARF) debug info for debug builds (-DLLVM_USE_SPLIT_DWARF=ON). Plus, usually I just build the tools I need instead of firing `ninja` or `ninja all`




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: