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.
- Tries to find LLVMβs
compiler-rt
source directory, for buildinglibrary/profiler_builtins
. - 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.
- Resolves standard library crates for
Std::run_make
for any build kind (like check, build, clippy, etc.).