Skip to main content

compile_profile

Function compile_profile 

Source
pub fn compile_profile(
    contents: String,
    filename: &str,
    debug: bool,
    resolver: &ImportResolver,
    optimize: bool,
) -> CompileOutput
Expand description

compile in the profile optimize names.

false is the debug profile every run from source uses, true the release profile candela build uses. The two produce programs that behave alike, with the same diagnostics, runtime errors and spans; the release one runs faster.