Skip to main content

compile_with_options

Function compile_with_options 

Source
pub fn compile_with_options(
    source: &str,
    options: &CompileOptions,
) -> MultiErrorResult<CompileOutput>
Expand description

Compile source code to an ELF binary with the given options.

This allows specifying the target architecture, optimization level, and other compilation options.

This function collects errors from multiple functions instead of stopping at the first error, allowing users to see all issues at once.