rustc-ap-rustc_target 412.0.0

Automatically published version of the package `rustc_target` in the rust-lang/rust repository from commit 817d074e5459e5c7e44010520f0491b91213b7f2 The publishing script for this crate lives at: https://github.com/alexcrichton/rustc-auto-publish
Documentation
use crate::spec::{LldFlavor, LinkArgs, LinkerFlavor, 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(),
        "--eh-frame-hdr".to_string(),
        "--hash-style=gnu".to_string(),
        "-z".to_string(), "rodynamic".to_string(),
    ]);

    TargetOptions {
        linker: Some("rust-lld".to_owned()),
        lld_flavor: LldFlavor::Ld,
        dynamic_linking: true,
        executables: true,
        target_family: Some("unix".to_string()),
        is_like_fuchsia: true,
        linker_is_gnu: true,
        has_rpath: false,
        pre_link_args: pre_link_args,
        pre_link_objects_exe: vec![
            "Scrt1.o".to_string()
        ],
        position_independent_executables: true,
        has_elf_tls: true,
        .. Default::default()
    }
}