# Function rustc_interface::util::get_codegen_backend

source ·

    pub fn get_codegen_backend(
        early_dcx: &EarlyDiagCtxt,
        sysroot: &Path,
        backend_name: Option<&str>,
        target: &Target,
    ) -> Box<dyn CodegenBackend>

Expand description

Get the codegen backend based on the name and specified sysroot.

A name of `None` indicates that the default backend should be used.