Struct rustc_codegen_ssa::back::linker::GccLinker [−][src]
pub struct GccLinker<'a> {
cmd: Command,
sess: &'a Session,
target_cpu: &'a str,
hinted_static: bool,
is_ld: bool,
}Fields
cmd: Commandsess: &'a Sessiontarget_cpu: &'a strhinted_static: boolis_ld: boolImplementations
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
impl<'a> !RefUnwindSafe for GccLinker
impl<'a> !UnwindSafe for GccLinker
Blanket Implementations
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
