(value: &str, target: TargetMode)
| 436 | } |
| 437 | } |
| 438 | } |
| 439 | |
| 440 | let units = Self::prune_unreferenced_stdlib(units, &prunable, manifest.entry.as_deref()); |
| 441 | |
| 442 | let modules: Vec<(&str, &AssembledOutput)> = units |
| 443 | .iter() |
| 444 | .map(|unit| (unit.name.as_str(), &unit.assembled)) |
| 445 | .collect(); |
| 446 | let link_pipeline = Self::pipeline_for(manifest); |
| 447 | let linked = link_pipeline |
| 448 | .link_assembled_objects_named(&manifest.name, &modules) |
| 449 | .map_err(BuildError::Link)?; |
| 450 | |
| 451 | Ok(BuildArtifacts { |
| 452 | plan, |