rust/src/tools
Alex Crichton 7f23e6e8d7
rustc: Link LLVM directly into rustc again
This commit builds on #65501 continue to simplify the build system and
compiler now that we no longer have multiple LLVM backends to ship by
default. Here this switches the compiler back to what it once was long
long ago, which is linking LLVM directly to the compiler rather than
dynamically loading it at runtime. The `codegen-backends` directory of
the sysroot no longer exists and all relevant support in the build
system is removed. Note that `rustc` still supports a dynamically loaded
codegen backend as it did previously, it just no longer supports
dynamically loaded codegen backends in its own sysroot.

Additionally as part of this the `librustc_codegen_llvm` crate now once
again explicitly depends on all of its crates instead of implicitly
loading them through the sysroot. This involved filling out its
`Cargo.toml` and deleting all the now-unnecessary `extern crate`
annotations in the header of the crate. (this in turn required adding a
number of imports for names of macros too).

The end results of this change are:

* Rustbuild's build process for the compiler as all the "oh don't forget
  the codegen backend" checks can be easily removed.
* Building `rustc_codegen_llvm` is much simpler since it's simply
  another compiler crate.
* Managing the dependencies of `rustc_codegen_llvm` is much simpler since
  it's "just another `Cargo.toml` to edit"
* The build process should be a smidge faster because there's more
  parallelism in the main rustc build step rather than splitting
  `librustc_codegen_llvm` out to its own step.
* The compiler is expected to be slightly faster by default because the
  codegen backend does not need to be dynamically loaded.
* Disabling LLVM as part of rustbuild is still supported, supporting
  multiple codegen backends is still supported, and dynamic loading of a
  codegen backend is still supported.
2019-12-11 09:50:11 -05:00
..
build-manifest more correct error msg 2019-11-04 10:10:49 +01:00
cargo@626f0f40ef Update cargo 2019-12-03 10:22:00 -08:00
cargotest cargotest: bump iron 2019-09-26 07:50:39 +02:00
clippy@374db5c0b7 Update Clippy 2019-12-04 01:37:28 +01:00
compiletest compiletest: add aux-crate directive 2019-12-09 08:08:27 -08:00
error_index_generator Remove useless line for error index generation 2019-11-23 22:07:52 +01:00
linkchecker Remove InternedString. 2019-10-21 18:30:40 +11:00
miri@048af40923 update Miri 2019-12-08 11:34:36 +01:00
remote-test-client Add #![deny(warnings)] to internal tools 2019-09-23 09:34:44 -07:00
remote-test-server Add #![deny(warnings)] to internal tools 2019-09-23 09:34:44 -07:00
rls@8f1c2756d7 Update RLS and Rustfmt 2019-12-10 20:01:55 +01:00
rust-installer@9f66c14c3f Update rust-installer to limit memory use 2019-08-28 14:48:02 -07:00
rustbook Update mdbook. 2019-11-12 10:14:48 -08:00
rustc-std-workspace-alloc Update version of rustc-std-workspace-* crates 2019-09-09 13:02:10 -07:00
rustc-std-workspace-core Update version of rustc-std-workspace-* crates 2019-09-09 13:02:10 -07:00
rustc-std-workspace-std Update version of rustc-std-workspace-* crates 2019-09-09 13:02:10 -07:00
rustc-workspace-hack Adjust rustc-workspace-hack 2019-10-31 13:12:35 +07:00
rustdoc Remove lint annotations in specific crates that are already enforced by rustbuild 2019-07-28 18:46:24 +03:00
rustdoc-js Move documentation build into bootstrap 2019-02-25 17:46:06 +01:00
rustdoc-js-std Make js tests work even with resource-suffix option 2019-03-10 23:10:40 +01:00
rustdoc-themes remove -Z option from rustdoc theme checker tool 2019-11-18 16:43:48 +01:00
rustfmt@1838235248 Update RLS and Rustfmt 2019-12-10 20:01:55 +01:00
tidy rustc: Link LLVM directly into rustc again 2019-12-11 09:50:11 -05:00
unstable-book-gen Add #![deny(warnings)] to internal tools 2019-09-23 09:34:44 -07:00
publish_toolstate.py Add JohnTitor to rustc-guide toolstate notification list 2019-11-18 00:47:38 +09:00