Remove unnecessary linker args

This commit is contained in:
leo60228 2021-09-15 15:19:00 -04:00
parent 60beb1a995
commit f688a56ef6
No known key found for this signature in database
GPG Key ID: AC6F4BA078E67833

View File

@ -19,15 +19,9 @@ pub fn target() -> Target {
..Default::default()
};
opts.pre_link_args.insert(
LinkerFlavor::Lld(LldFlavor::Ld),
vec![],
);
opts.pre_link_args.insert(LinkerFlavor::Lld(LldFlavor::Ld), vec![]);
opts.post_link_args.insert(
LinkerFlavor::Lld(LldFlavor::Ld),
vec!["--no-gc-sections".to_string(), "--eh-frame-hdr".to_string()],
);
opts.post_link_args.insert(LinkerFlavor::Lld(LldFlavor::Ld), vec![]);
Target {
llvm_target: "aarch64-unknown-none".into(),