Compile one kernel HLL source as a standalone module and assert it succeeds.
(name: &str, source: &str)
| 14 | .next()?; |
| 15 | Some((name.to_owned(), *source)) |
| 16 | }) |
| 17 | .collect() |
| 18 | } |
| 19 | |
| 20 | // Compile one kernel HLL source as a standalone module and assert it succeeds. |
| 21 | fn assert_kernel_module_compiles(name: &str, source: &str) { |
| 22 | eprintln!("compiling kernel module {name}"); |
| 23 | let mut p = CompilationPipeline::new(); |
| 24 | p.set_target_mode(TargetMode::Kernel); |
| 25 | p.set_write_artifacts(false); |