Compile the hosted stdlib once (per module, no concatenation) and link every user program against the objects.
()
| 16 | .expect("stdlib compile failed") |
| 17 | }) |
| 18 | } |
| 19 | |
| 20 | // Compile a user program, link it against the cached stdlib, and run it in the VM. |
| 21 | fn run_hll(src: &str) -> StepOutcome { |
| 22 | let mut pipeline = CompilationPipeline::new(); |
| 23 | pipeline.set_write_artifacts(false); |
| 24 | |
| 25 | let user_result = pipeline.compile(src).expect("user compile failed"); |
| 26 | let (_, user_tokens) = pipeline.compile_ir_to_assembly_with_tokens(&user_result.ir_program); |
| 27 | let user_obj = pipeline |
no test coverage detected