How can we make it easier to build Rust faster?

Hello, I just recently started investigating Rust again after a long absence and the Rust compiler is still slow to build.

I think I can build Rust faster than normal by passing the options CC='ccache clang-3.6' CXX='ccache clang++-3.6' LD=ld.gold CFLAGS='-gsplit-dwarf" -j3 to the make command (by the way when did things change so that I can’t do that for the configure command and why so?) but many people won’t know that. Also, this could be easier.

Also there are more possibilities for making Rust build faster such as listed at http://blogs.s-osg.org/a-conclusion-to-accelerating-your-build-with-clang/ (building LLVM is a big chunk of the compile time for Rust.)

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.