MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / compile_one

Method compile_one

src/build.rs:379–395  ·  view source on GitHub ↗
(
        pipeline: &mut CompilationPipeline,
        source: &LoadedSource,
    )

Source from the content-addressed store, hash-verified

377 let mut root_unit = Self::compile_one(&mut pipeline, &root)?;
378 Self::mark_abi_exports(manifest, &mut root_unit.assembled);
379 units.push(root_unit);
380 }
381 }
382 }
383
384 let units = Self::prune_unreferenced_stdlib(units, &prunable, manifest.entry.as_deref());
385
386 let modules: Vec<(&str, &AssembledOutput)> = units
387 .iter()
388 .map(|unit| (unit.name.as_str(), &unit.assembled))
389 .collect();
390 let link_pipeline = Self::pipeline_for(manifest);
391 let linked = link_pipeline
392 .link_assembled_objects_named(&manifest.name, &modules)
393 .map_err(BuildError::Link)?;
394
395 Ok(BuildArtifacts {
396 plan,
397 units,
398 linked,

Callers

nothing calls this directly

Calls 5

set_artifact_stemMethod · 0.80
assemble_namedMethod · 0.80
cloneMethod · 0.45
compileMethod · 0.45

Tested by

no test coverage detected