MCPcopy Create free account
hub / github.com/Rust-GPU/rust-gpu / link

Method link

crates/rustc_codegen_spirv/src/lib.rs:271–288  ·  view source on GitHub ↗
(
        &self,
        sess: &Session,
        codegen_results: CodegenResults,
        outputs: &OutputFilenames,
    )

Source from the content-addressed store, hash-verified

269 }
270
271 fn link(
272 &self,
273 sess: &Session,
274 codegen_results: CodegenResults,
275 outputs: &OutputFilenames,
276 ) -> Result<(), ErrorGuaranteed> {
277 let timer = sess.timer("link_crate");
278 link::link(
279 sess,
280 &codegen_results,
281 outputs,
282 codegen_results.crate_info.local_crate_name.as_str(),
283 );
284 drop(timer);
285
286 sess.compile_status()?;
287 Ok(())
288 }
289}
290
291impl WriteBackendMethods for SpirvCodegenBackend {

Callers

nothing calls this directly

Calls 1

linkFunction · 0.70

Tested by

no test coverage detected