about summary refs log tree commit diff
path: root/compiler/rustc_errors/src/json.rs
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-11-08 15:16:37 +0100
committerbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-11-08 15:20:20 +0100
commit6ffab47e553f6fcd5590a3c86c646860bace5823 (patch)
treee3153469642119c1fe2a3f40220eeafafb019e2d /compiler/rustc_errors/src/json.rs
parent209799f3b910c64c8bd5001c0a8a55e03e7c2614 (diff)
downloadrust-6ffab47e553f6fcd5590a3c86c646860bace5823.tar.gz
rust-6ffab47e553f6fcd5590a3c86c646860bace5823.zip
Use lld with non-LLVM backends
On arm64, Cranelift used to produce object files that don't work with
lld. This has since been fixed. The GCC backend should always produce
object files that work with lld unless lld for whatever reason drops GCC
support. Most of the other more niche backends don't use cg_ssa's linker
code at all. If they do and don't work with lld, they can always disable
lld usage using a cli argument.

Without this commit using cg_clif is by default in a non-trivial amount
of cases a perf regression on Linux due to ld.bfd being a fair bit
slower than lld. It is possible to explicitly enable it without this
commit, but most users are unlikely to do this.
Diffstat (limited to 'compiler/rustc_errors/src/json.rs')
0 files changed, 0 insertions, 0 deletions