rustc_target: Rely on defaults more in target specs

This commit is contained in:
Vadim Petrochenkov
2021-04-04 00:31:28 +03:00
parent 5a7a0ac51e
commit e7e485cf51
27 changed files with 6 additions and 52 deletions

View File

@@ -23,13 +23,11 @@ pub fn opts() -> TargetOptions {
os: "fuchsia".to_string(),
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
linker: Some("rust-lld".to_owned()),
lld_flavor: LldFlavor::Ld,
dynamic_linking: true,
executables: true,
os_family: Some("unix".to_string()),
is_like_fuchsia: true,
linker_is_gnu: true,
has_rpath: false,
pre_link_args,
pre_link_objects: crt_objects::new(&[
(LinkOutputKind::DynamicNoPicExe, &["Scrt1.o"]),