]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #68623 - Zoxc:lld, r=Mark-Simulacrum
authorbors <bors@rust-lang.org>
Sun, 9 Feb 2020 15:24:50 +0000 (15:24 +0000)
committerbors <bors@rust-lang.org>
Sun, 9 Feb 2020 15:24:50 +0000 (15:24 +0000)
commit1ad6b5e1e69ad3d3509abd8c041bb9fb2dd86c41
tree3c961ff663a69eb05e8b1ffec1dc68b7af8cbb45
parent6dff769e3718c56f78a317df7167426d60895d58
parentd304cd0c5543c701bbfec0bd7b0c8b7c142b3bca
Auto merge of #68623 - Zoxc:lld, r=Mark-Simulacrum

Add an option to use LLD to link the compiler on Windows platforms

Based on https://github.com/rust-lang/rust/pull/68609.

Using LLD is good way to improve compile times on Windows since `link.exe` is quite slow. The time for `x.py build --stage 1 src/libtest` goes from 0:12:00 to 0:08:29. Compile time for `rustc_driver` goes from 226.34s to 18.5s. `rustc_macros` goes from 28.69s to 7.7s. The size of `rustc_driver` is also reduced from 83.3 MB to 78.7 MB.

r? @Mark-Simulacrum
src/bootstrap/bin/rustc.rs
src/bootstrap/builder.rs
src/bootstrap/config.rs
src/bootstrap/lib.rs
src/bootstrap/test.rs