rust/compiler/rustc_codegen_llvm
Alex Gaynor c65c36242e
resolve error when attempting to link a universal library on macOS
Previously attempting to link universal libraries into libraries (but not binaries) would produce an error that "File too small to be an archive". This works around this by using `object` to extract a library for the target platform when passed a univeral library.

Fixes #55235
2022-10-04 07:39:51 -04:00
..
src resolve error when attempting to link a universal library on macOS 2022-10-04 07:39:51 -04:00
Cargo.toml resolve error when attempting to link a universal library on macOS 2022-10-04 07:39:51 -04:00
README.md

The codegen crate contains the code to convert from MIR into LLVM IR, and then from LLVM IR into machine code. In general it contains code that runs towards the end of the compilation process.

For more information about how codegen works, see the rustc dev guide.