Module bootstrap::core::build_steps::compile
source Β· Expand description
Implementation of compiling various phases of the compiler and standard library.
This module contains some of the real meat in the bootstrap 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§
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.
- copy_and_stamp π
- Creates the
codegen-backends
folder for a compiler thatβs about to be assembled as a complete compiler. - copy_llvm_libunwind π
- copy_sanitizers π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.
- needs_codegen_config π
- rustc_llvm_env π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.