pub struct GccLinker<'a> {
    cmd: Command,
    sess: &'a Session,
    target_cpu: &'a str,
    hinted_static: bool,
    is_ld: bool,
    is_gnu: bool,
}

Fields§

§cmd: Command§sess: &'a Session§target_cpu: &'a str§hinted_static: bool§is_ld: bool§is_gnu: bool

Implementations§

Passes an argument directly to the linker.

When the linker is not ld-like such as when using a compiler as a linker, the argument is prepended by -Wl,.

Passes a series of arguments directly to the linker.

When the linker is ld-like, the arguments are simply appended to the command. When the linker is not ld-like such as when using a compiler as a linker, the arguments are joined by commas to form an argument that is then prepended with -Wl. In this situation, only a single argument is appended to the command to ensure that the order of the arguments is preserved by the compiler.

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.

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