pub enum LldMode {
Unused,
SelfContained,
External,
}
Expand description
LLD in bootstrap works like this:
- Self-contained lld: use
rust-lld
from the compiler’s sysroot - External: use an external
lld
binary
It is configured depending on the target:
- Everything except MSVC
- Self-contained:
-Clinker-flavor=gnu-lld-cc -Clink-self-contained=+linker
- External:
-Clinker-flavor=gnu-lld-cc
- MSVC
- Self-contained:
-Clinker=<path to rust-lld>
- External:
-Clinker=lld
Variants§
Unused
Do not use LLD
SelfContained
Use rust-lld
from the compiler’s sysroot
External
Use an externally provided lld
binary.
Note that the linker name cannot be overridden, the binary has to be named lld
and it has
to be in $PATH.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for LldMode
impl<'de> Deserialize<'de> for LldMode
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for LldMode
impl StructuralPartialEq for LldMode
Auto Trait Implementations§
impl Freeze for LldMode
impl RefUnwindSafe for LldMode
impl Send for LldMode
impl Sync for LldMode
impl Unpin for LldMode
impl UnwindSafe for LldMode
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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: 1 byte
Size for each variant:
Unused
: 0 bytesSelfContained
: 0 bytesExternal
: 0 bytes