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 name: manifest.name.clone(),
378 target: manifest.target,
379 entry: manifest.entry.clone(),
380 stdlib: manifest.stdlib,
381 import_closure: manifest.import_closure,
382 root: manifest.root.name().to_owned(),
383 extra_objects: manifest
384 .extra_objects
385 .iter()
386 .map(|object| object.name.clone())
387 .collect(),
388 abi_exports: manifest.abi_exports.clone(),
389 has_source_prelude: manifest.source_prelude.is_some(),
390 }
391 }
392
393 pub fn build(manifest: &BuildManifest) -> Result<BuildArtifacts, BuildError> {
394 let plan = Self::plan(manifest);
395 let mut units: Vec<BuiltUnit> = Vec::new();
396
397 let mut prunable = std::collections::HashSet::new();
398 for (name, assembled) in Self::compile_stdlib(manifest)? {

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