mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-05 11:47:13 +00:00

Session object: Set OS/ABI
Closes https://github.com/rust-lang/rust/issues/97535.
This depends on
* https://github.com/gimli-rs/object/pull/438
This adapts LLVM's behavior of [`MCELFObjectTargetWriter::getOSABI`](8c8a2679a2/llvm/include/llvm/MC/MCELFObjectWriter.h (L72-L86)
).
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.