MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / kernel_stdlib_all_modules_compile

Function kernel_stdlib_all_modules_compile

tests/integration/kernel_modules.rs:27–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25 p.set_write_artifacts(false);
26 p.compile_modules(&[(name, source)])
27 .unwrap_or_else(|e| panic!("kernel module `{name}` failed to compile:\n{e}"));
28}
29
30// --- Stdlib modules used by the kernel ---
31
32#[test]
33fn kernel_stdlib_all_modules_compile() {
34 let modules = get_stdlib_modules_for_mode(TargetMode::Kernel);
35 let mut p = CompilationPipeline::new();
36 p.set_target_mode(TargetMode::Kernel);
37 p.set_write_artifacts(false);
38 p.set_string_prefix(Some("__kern_str_".to_owned()));
39 p.compile_modules(&modules)

Callers

nothing calls this directly

Calls 7

get_stdlib_type_preludeFunction · 0.85
set_write_artifactsMethod · 0.80
set_string_prefixMethod · 0.80
compile_modulesMethod · 0.80
set_target_modeMethod · 0.45
set_type_preludeMethod · 0.45

Tested by

no test coverage detected