[−][src]Function rustc_codegen_llvm::back::link::emit_metadata
fn emit_metadata<'a>(
sess: &'a Session,
codegen_results: &CodegenResults,
tmpdir: &TempDir
) -> PathBuf
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
We use a temp directory here to avoid races between concurrent rustc processes,
such as builds in the same directory using the same filename for metadata while
building an .rlib
(stomping over one another), or writing an .rmeta
into a
directory being searched for extern crate
(observing an incomplete file).
The returned path is the temporary file containing the complete metadata.