Struct rustc_codegen_llvm::back::archive::LlvmArchiveBuilder [−][src]
pub struct LlvmArchiveBuilder<'a> {
config: ArchiveConfig<'a>,
removals: Vec<String>,
additions: Vec<Addition>,
should_update_symbols: bool,
src_archive: Option<Option<ArchiveRO>>,
}Expand description
Helper for adding many files to an archive.
Fields
config: ArchiveConfig<'a>removals: Vec<String>additions: Vec<Addition>should_update_symbols: boolsrc_archive: Option<Option<ArchiveRO>>Implementations
Trait Implementations
Creates a new static archive, ready for modifying the archive specified
by config.
Removes a file from this archive
Adds all of the contents of a native library to this archive. This will
search in the relevant locations for a library named name.
Adds all of the contents of the rlib at the specified path to this archive.
This ignores adding the bytecode from the rlib, and if LTO is enabled then the object file also isn’t added.
Indicate that the next call to build should update all symbols in
the archive (equivalent to running ‘ar s’ over it).
fn inject_dll_import_lib(
&mut self,
lib_name: &str,
dll_imports: &[DllImport],
tmpdir: &MaybeTempDir
)
Auto Trait Implementations
impl<'a> !RefUnwindSafe for LlvmArchiveBuilder<'a>
impl<'a> !Send for LlvmArchiveBuilder<'a>
impl<'a> !Sync for LlvmArchiveBuilder<'a>
impl<'a> Unpin for LlvmArchiveBuilder<'a>
impl<'a> !UnwindSafe for LlvmArchiveBuilder<'a>
Blanket Implementations
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 152 bytes