rust/mk
Stuart Pernsteiner c245c5bbad enable parallel codegen by default
Enable parallel codegen (2 units) by default when --opt-level is 0 or 1.  This
gives a minor speedup on large crates (~10%), with only a tiny slowdown (~2%)
for small ones (which usually build in under a second regardless).  The current
default (no parallelization) is used when the user requests optimization
(--opt-level 2 or 3), and when the user has enabled LTO (which is incompatible
with parallel codegen).

This commit also changes the rust build system to use parallel codegen
when appropriate.  This means codegen-units=4 for stage0 always, and
also for stage1 and stage2 when configured with --disable-optimize.
(Other settings use codegen-units=1 for stage1 and stage2, to get
maximum performance for release binaries.)  The build system also sets
codegen-units=1 for compiletest tests (compiletest does its own
parallelization) and uses the same setting as stage2 for crate tests.
2014-10-21 14:46:16 -07:00
..
clean.mk mk: Add space before line continuation backslash 2014-07-23 08:44:11 -07:00
crates.mk Remove a number of deprecated crates 2014-10-19 12:59:40 -07:00
ctags.mk Fix make TAGS.vi target 2014-10-02 03:34:14 +02:00
dist.mk Rename RELEASES.txt to RELEASES.md. It's markdown. 2014-10-07 11:18:47 -07:00
docs.mk Remove the runtime guide. 2014-10-10 13:30:17 -04:00
grammar.mk mk: Print grammar info message like others 2014-07-25 14:32:34 -07:00
host.mk mk: Add space before line continuation backslash 2014-07-23 08:44:11 -07:00
install.mk Avoid building as root with sudo make install 2014-09-04 22:18:19 -07:00
llvm.mk Move llvm bindings to their own crate 2014-07-14 12:27:07 -07:00
main.mk enable parallel codegen by default 2014-10-21 14:46:16 -07:00
perf.mk
platform.mk Remove libuv, gyp 2014-10-01 12:42:30 -07:00
prepare.mk mk: Add space before line continuation backslash 2014-07-23 08:44:11 -07:00
reconfig.mk Remove libuv, gyp 2014-10-01 12:42:30 -07:00
rt.mk mk/rt: "export CC" does not seem to work (gcc observed), use explicit shell variables instead 2014-10-20 15:35:38 -04:00
rustllvm.mk
snap.mk mk: Remove extra whitespace before line continuation backslashes 2014-07-23 08:41:55 -07:00
stage0.mk mk: Fix a minor makefile warning on windows 2014-09-24 17:46:36 -07:00
target.mk mk: Add space before line continuation backslash 2014-07-23 08:44:11 -07:00
tests.mk enable parallel codegen by default 2014-10-21 14:46:16 -07:00
util.mk mk: Address review feedback 2014-02-14 19:17:50 -08:00