(
pipeline: &mut CompilationPipeline,
source: &LoadedSource,
)
| 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, |
nothing calls this directly
no test coverage detected