Compile a hosted user program and link the hosted stdlib.
(src: &str)
| 61 | |
| 62 | // Compile a catalog program (primary + aux units) the way the app boot path |
| 63 | // does. |
| 64 | fn compile_hosted_program(name: &str) -> AssembledOutput { |
| 65 | let prog = user::program(name).expect("program in catalog"); |
| 66 | BuildExecutor::build(&BuildManifest::from_user_program(prog)) |
| 67 | .expect("catalog hosted manifest build") |
| 68 | .linked |
| 69 | } |
| 70 | |
| 71 | // Builds the VM without running it, so a caller can either run it in one shot |
no outgoing calls