Skip to content

Commit 0bef240

Browse files
committed
openbsd-i686: use lld as linker by default
standard binutils on openbsd is too old to do proper job with i128 code.
1 parent c705877 commit 0bef240

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc_target/spec/i686_unknown_openbsd.rs

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ pub fn target() -> TargetResult {
1515
base.cpu = "pentium4".to_string();
1616
base.max_atomic_width = Some(64);
1717
base.pre_link_args.get_mut(&LinkerFlavor::Gcc).unwrap().push("-m32".to_string());
18+
base.pre_link_args.get_mut(&LinkerFlavor::Gcc).unwrap().push("-fuse-ld=lld".to_string());
1819
base.stack_probes = true;
1920

2021
Ok(Target {

0 commit comments

Comments
 (0)