Function rustc_interface::util::add_configuration
source · pub fn add_configuration(
cfg: &mut CrateConfig,
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 LLVM.