link_rlib in rustc_codegen_ssa::back::link - Rust
Description: Create an ‘rlib’.

Skip to main content

## link_rlib

# Function link_rlib

Source

    fn link_rlib<'a>(
        sess: &'a Session,
        archive_builder_builder: &dyn ArchiveBuilderBuilder,
        compiled_modules: &CompiledModules,
        crate_info: &CrateInfo,
        metadata: &EncodedMetadata,
        flavor: RlibFlavor,
        tmpdir: &MaybeTempDir,
    ) -> Box<dyn ArchiveBuilder + 'a>

Expand description

Create an ‘rlib’.

An rlib in its current incarnation is essentially a renamed .a file (with “dummy” object files). The rlib primarily contains the object file of the crate, but it also some of the object files from native libraries.