Kernel built from the per-module stdlib objects plus my_kernel (no source concatenation). This is what most tests boot.
()
| 27 | std::path::Path::new(env!("CARGO_MANIFEST_DIR")) |
| 28 | .join("crates/os-runtime/kernel/kernel.build"), |
| 29 | ) |
| 30 | .expect("kernel build file parse"); |
| 31 | BuildExecutor::build(&manifest) |
| 32 | .expect("kernel manifest build") |
| 33 | .linked |
| 34 | }) |
| 35 | } |
| 36 | |
| 37 | // --- Shared helpers --- |
| 38 | |
| 39 | // Compile a hosted user program and link the hosted stdlib. |
| 40 | fn compile_hosted(src: &str) -> AssembledOutput { |
| 41 | let manifest = BuildManifest::hosted("main", src); |
| 42 | BuildExecutor::build(&manifest) |
| 43 | .expect("hosted manifest build") |
| 44 | .linked |
no outgoing calls