Skip to main content

compile_polydat_with_engine

Function compile_polydat_with_engine 

Source
pub fn compile_polydat_with_engine(
    source: &str,
    engine: Engine,
    options: &CompileOptions,
    log: Option<&mut CompileEventLog>,
) -> Result<Box<dyn Kernel>, KernelError>
Expand description

compile_polydat_with with the kernel path’s options (source directory, library paths, required outputs, strict typing, the error context label, the cursor limit) and the compile event log. On the interpreter this is the whole kernel path, traversals included; on a compiled engine the assembler entry point followed by PolydatAssembler::compile_engine_with_log.

The engine argument is a per-call override of options.engine, for a caller that holds one options value and walks the tiers with it. A caller that has no such need expresses the preference once, in the options, and calls compile_polydat_kernel_with_options.