about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSébastien Marie <semarie@users.noreply.github.com>2018-05-12 09:46:07 +0200
committerSébastien Marie <semarie@users.noreply.github.com>2018-05-12 10:27:04 +0200
commit0bef2402772218a20c7572e0d606e529844b527d (patch)
treeaee2edc9eba8f7dc2eceffa0347a8b03e164e8d1
parentc705877b1df780acfb2dcba4ebca6f30102dd8a2 (diff)
downloadrust-0bef2402772218a20c7572e0d606e529844b527d.tar.gz
rust-0bef2402772218a20c7572e0d606e529844b527d.zip
openbsd-i686: use lld as linker by default
standard binutils on openbsd is too old to do proper job with i128
code.
-rw-r--r--src/librustc_target/spec/i686_unknown_openbsd.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc_target/spec/i686_unknown_openbsd.rs b/src/librustc_target/spec/i686_unknown_openbsd.rs
index 79c059c8f95..f22bf2abe45 100644
--- a/src/librustc_target/spec/i686_unknown_openbsd.rs
+++ b/src/librustc_target/spec/i686_unknown_openbsd.rs
@@ -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 {