rustc-ap-rustc_target 636.0.0

Automatically published version of the package `rustc_target` in the rust-lang/rust repository from commit aa0769b92e60f5298f0b6326b8654c9b04351b98 The publishing script for this crate lives at: https://github.com/alexcrichton/rustc-auto-publish
Documentation
use crate::spec::{LinkArgs, LinkerFlavor, LldFlavor, PanicStrategy, TargetOptions};
use std::default::Default;

pub fn opts() -> TargetOptions {
    let mut pre_link_args = LinkArgs::new();
    pre_link_args.insert(
        LinkerFlavor::Lld(LldFlavor::Ld),
        vec!["--build-id".to_string(), "--hash-style=gnu".to_string(), "--Bstatic".to_string()],
    );

    TargetOptions {
        disable_redzone: true,
        linker: Some("rust-lld".to_owned()),
        executables: true,
        has_elf_tls: true,
        linker_is_gnu: true,
        pre_link_args,
        no_default_libraries: true,
        panic_strategy: PanicStrategy::Abort,
        position_independent_executables: true,
        relocation_model: "static".to_string(),
        target_family: None,
        tls_model: "initial-exec".to_string(),
        ..Default::default()
    }
}