diff options
| author | Sébastien Marie <semarie@users.noreply.github.com> | 2018-05-12 09:46:07 +0200 |
|---|---|---|
| committer | Sébastien Marie <semarie@users.noreply.github.com> | 2018-05-12 10:27:04 +0200 |
| commit | 0bef2402772218a20c7572e0d606e529844b527d (patch) | |
| tree | aee2edc9eba8f7dc2eceffa0347a8b03e164e8d1 | |
| parent | c705877b1df780acfb2dcba4ebca6f30102dd8a2 (diff) | |
| download | rust-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.rs | 1 |
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 { |
