rustc_interface::util

Function add_configuration

Source
pub fn add_configuration(
    cfg: &mut Cfg,
    sess: &mut Session,
    codegen_backend: &dyn CodegenBackend,
)
Expand description

Adds target_feature = "..." cfgs for a variety of platform specific features (SSE, NEON etc.).

This is performed by checking whether a set of permitted features is available on the target machine, by querying the codegen backend.