struct RustcLink {
pub compiler: Compiler,
pub previous_stage_compiler: Compiler,
pub target: TargetSelection,
crates: Vec<String>,
}
Expand description
RustcLink
copies all of the rlibs from the rustc build into the previous stage’s sysroot.
This is necessary for tools using rustc_private
, where the previous compiler will build
a tool against the next compiler.
To build a tool against a compiler, the rlibs of that compiler that it links against
must be in the sysroot of the compiler that’s doing the compiling.
Fields§
§compiler: Compiler
The compiler whose rlibs we are copying around.
previous_stage_compiler: Compiler
This is the compiler into whose sysroot we want to copy the rlibs into.
target: TargetSelection
§crates: Vec<String>
Not actually used; only present to make sure the cache invalidation is correct.
Implementations§
Trait Implementations§
Source§impl Step for RustcLink
impl Step for RustcLink
Source§fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_>
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_>
Step
should be run when given specific paths (e.g., x build $path
).Source§const DEFAULT: bool = false
const DEFAULT: bool = false
describe
macro in Builder::get_step_descriptions
. Read moreSource§const ONLY_HOSTS: bool = false
const ONLY_HOSTS: bool = false
Source§fn make_run(_run: RunConfig<'_>)
fn make_run(_run: RunConfig<'_>)
Step
handler when not triggered indirectly by other Step
s using Builder::ensure
.
For example, ./x.py test bootstrap
runs this for test::Bootstrap
. Similarly, ./x.py test
runs it for every step
that is listed by the describe
macro in Builder::get_step_descriptions
.impl Eq for RustcLink
impl StructuralPartialEq for RustcLink
Auto Trait Implementations§
impl Freeze for RustcLink
impl RefUnwindSafe for RustcLink
impl Send for RustcLink
impl Sync for RustcLink
impl Unpin for RustcLink
impl UnwindSafe for RustcLink
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 136 bytes