pub enum ToolTargetBuildMode {
Build(TargetSelection),
Dist(Compiler),
}
Expand description
Determines how to build a ToolTarget
, i.e. which compiler should be used to compile it.
The compiler stage is automatically bumped if we need to cross-compile a stage 1 tool.
Variants§
Build(TargetSelection)
Build the tool using rustc that corresponds to the selected CLI stage.
Dist(Compiler)
Build the tool so that it can be attached to the sysroot of the passed compiler. Since we always dist stage 2+, the compiler that builds the tool in this case has to be stage 1+.
Auto Trait Implementations§
impl Freeze for ToolTargetBuildMode
impl RefUnwindSafe for ToolTargetBuildMode
impl Send for ToolTargetBuildMode
impl Sync for ToolTargetBuildMode
impl Unpin for ToolTargetBuildMode
impl UnwindSafe for ToolTargetBuildMode
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
Mutably borrows from an owned value. Read more
§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: 40 bytes
Size for each variant:
Build
: 40 bytesDist
: 40 bytes