Expand description
Module for managing build stamp files.
Contains the core implementation of how bootstrap utilizes stamp files on build processes.
Re-exportsΒ§
use std::path::Path;πuse std::path::PathBuf;πuse std::fs;πuse std::io;πuse sha2::digest::Digest;πuse crate::core::backend::CodegenBackendKind;πuse crate::core::builder::Builder;πuse crate::core::compiler::Compiler;πuse crate::core::config::TargetSelection;πuse crate::core::session::Mode;πuse crate::utils::helpers;πuse crate::utils::helpers::hex_encode;πuse crate::utils::helpers::mtime;πuse crate::utils::helpers::t;π
StructsΒ§
- Build
Stamp - Manages a stamp file to track build state. The file is created in the given directory and can have custom content and name.
FunctionsΒ§
- clear_
if_ dirty - Clear out
dirifinputis newer. - codegen_
backend_ stamp - Cargoβs output path for librustc_codegen_llvm in a given stage, compiled by a particular compiler for the specified target and backend.
- generate_
smart_ stamp_ hash - Computes a hash representing the state of a repository/submodule and additional input.
- librustc_
stamp - Cargoβs output path for librustc in a given stage, compiled by a particular
build_compilerfor the specified target. - libstd_
stamp - Cargoβs output path for the standard library in a given stage, compiled
by a particular
build_compilerfor the specifiedtarget.