Function rustc_driver::get_codegen_backend[−][src]

pub(crate) fn get_codegen_backend(
    maybe_sysroot: &Option<PathBuf>,
    backend_name: Option<&str>
) -> Box<dyn CodegenBackend + 'static, Global>ⓘ
Notable traits for Box<W, Global>
impl<W> Write for Box<W, Global> where
    W: Write + ?Sized, 
impl<R> Read for Box<R, Global> where
    R: Read + ?Sized, 
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.