Struct rustc_codegen_llvm::back::archive::LlvmArchiveBuilder
source · [−]Expand description
Helper for adding many files to an archive.
Fields
sess: &'a Sessiondst: PathBufadditions: Vec<Addition>Implementations
sourceimpl<'a> LlvmArchiveBuilder<'a>
impl<'a> LlvmArchiveBuilder<'a>
fn build_with_llvm(&mut self) -> Result<bool>
fn i686_decorated_name(import: &DllImport, mingw: bool) -> String
Trait Implementations
sourceimpl<'a> ArchiveBuilder<'a> for LlvmArchiveBuilder<'a>
impl<'a> ArchiveBuilder<'a> for LlvmArchiveBuilder<'a>
sourcefn new(sess: &'a Session, output: &Path) -> LlvmArchiveBuilder<'a>
fn new(sess: &'a Session, output: &Path) -> LlvmArchiveBuilder<'a>
Creates a new static archive, ready for modifying the archive specified
by config.
sourcefn build(self) -> bool
fn build(self) -> bool
Combine the provided files, rlibs, and native libraries into a single
Archive.
fn add_archive<F>(&mut self, archive: &Path, skip: F) -> Result<()> where
F: FnMut(&str) -> bool + 'static,
fn sess(&self) -> &Session
sourcefn create_dll_import_lib(
sess: &Session,
lib_name: &str,
dll_imports: &[DllImport],
tmpdir: &Path
) -> PathBuf
fn create_dll_import_lib(
sess: &Session,
lib_name: &str,
dll_imports: &[DllImport],
tmpdir: &Path
) -> PathBuf
Creates a DLL Import Library https://docs.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-creation#creating-an-import-library.
and returns the path on disk to that import library.
This functions doesn’t take self so that it can be called from
linker_with_args, which is specialized on ArchiveBuilder but
doesn’t take or create an instance of that type. Read more
sourcefn inject_dll_import_lib(
&mut self,
lib_name: &str,
dll_imports: &[DllImport],
tmpdir: &MaybeTempDir
)
fn inject_dll_import_lib(
&mut self,
lib_name: &str,
dll_imports: &[DllImport],
tmpdir: &MaybeTempDir
)
Creates a DLL Import Library https://docs.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-creation#creating-an-import-library and adds it to the current compilation’s set of archives. Read more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. 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: 56 bytes