Skip to main content

global_llvm_features

Function global_llvm_features 

Source
pub(crate) fn global_llvm_features(sess: &Session, for_cfg: bool) -> Vec<String>
Expand description

The list of LLVM features computed from CLI flags (-Ctarget-cpu, -Ctarget-feature, --target and similar).

If for_cfg is true then we are assembling the feature list for the purpose of populating [rustc_codegen_ssa::TargetConfig] based on what LLVM actually enables in this configuration. -Ctarget-feature should be ignored in that case since it is already processed separately.