Function rustc_codegen_ssa::back::link::link_rlib[][src]

fn link_rlib<'a, B: ArchiveBuilder<'a>>(
    sess: &'a Session,
    codegen_results: &CodegenResults,
    flavor: RlibFlavor,
    out_filename: &Path,
    tmpdir: &MaybeTempDir
) -> Result<B, ErrorReported>
Expand description

Create an ‘rlib’.

An rlib in its current incarnation is essentially a renamed .a file. The rlib primarily contains the object file of the crate, but it also contains all of the object files from native libraries. This is done by unzipping native libraries and inserting all of the contents into this archive.