[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: rust build requirements
14h seems excessive and there might be other factors involved.
On a 4GB machine (~2010 era hardware, Core 2 Quad, DDR3), I can build
rust in 2 hours and LLVM in one hour.
For rust I have the rust-llvm option disabled in PKG_OPTIONS to avoid
building LLVM twice, and /dev/random symlinked to /dev/urandom to avoid
rustc sucking up all the entropy from reading from /dev/random whenever
it spawns a process.
For LLVM I have the cross-compilation targets (except amdgpu) disabled
in PKG_OPTIONS. Even if you plan to cross-compile with LLVM, you probably
don't need all of them.
These things together save a whole bunch of time.
I've found that heavy C++ code (e.g. webkit) and linker operations
resulting from such code is much more likely to make the system swap.
In around 12 hours this hardware can do a limited bulk build including
heavy packages like clang, firefox, boost, GIMP, and so on.
Main Index |
Thread Index |