Expand description
Implementation of compiling various phases of the compiler and standard library.
This module contains some of the real meat in the rustbuild build system which is where Cargo is used to compile the standard library, libtest, and the compiler. This module is also responsible for assembling the sysroot as it goes along from the output of the previous stage.
Structs
- StdLink 🔒
Enums
Constants
Functions
- Link some files into a rustc sysroot.
- Cargo’s output path for librustc_codegen_llvm in a given stage, compiled by a particular compiler for the specified target and backend.
- Creates the
codegen-backends
folder for a compiler that’s about to be assembled as a complete compiler. - Copies sanitizer runtime libraries into target libdir.
- Copies third party objects needed by various targets for self-contained linkage.
- Copies third party objects needed by various targets.
- Cargo’s output path for librustc in a given stage, compiled by a particular compiler for the specified target.
- Cargo’s output path for the standard library in a given stage, compiled by a particular compiler for the specified target.
- Pass down configuration from the LLVM build into the build of rustc_llvm and rustc_codegen_llvm.
- Configure cargo to compile the standard library, adding appropriate env vars and such.