Skip to content

Commit

Permalink
openbsd-i686: use lld as linker by default
Browse files Browse the repository at this point in the history
standard binutils on openbsd is too old to do proper job with i128
code.
  • Loading branch information
semarie committed May 12, 2018
1 parent c705877 commit 0bef240
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc_target/spec/i686_unknown_openbsd.rs
Expand Up @@ -15,6 +15,7 @@ pub fn target() -> TargetResult {
base.cpu = "pentium4".to_string();
base.max_atomic_width = Some(64);
base.pre_link_args.get_mut(&LinkerFlavor::Gcc).unwrap().push("-m32".to_string());
base.pre_link_args.get_mut(&LinkerFlavor::Gcc).unwrap().push("-fuse-ld=lld".to_string());
base.stack_probes = true;

Ok(Target {
Expand Down

0 comments on commit 0bef240

Please sign in to comment.