Skip to main content

compile_frontend_from_ast_with_options_full_target

Function compile_frontend_from_ast_with_options_full_target 

Source
pub fn compile_frontend_from_ast_with_options_full_target(
    ast: Ast,
    interner: ThreadedRodeo,
    preview_features: &PreviewFeatures,
    suppress_comptime_dbg_print: bool,
    target: &Target,
) -> MultiErrorResult<CompileState>
Expand description

Like compile_frontend_from_ast_with_options_full, but additionally accepts the compile target so @target_arch() / @target_os() reflect it (ADR-0077). Use this from --emit paths that already have a target in hand. The non-_target variants default to the host.