Skip to main content

target_has_feature

Function target_has_feature 

Source
pub fn target_has_feature(feature: &str, target: &Target) -> Result<bool>
Expand description

Return whether the explicit LLVM target target has the CPU feature feature, or false for a target of another kind (codegen.target_has_feature).

ยงErrors

Returns an error if the LLVM backend, which registers the query, is not loaded, or if target cannot be queried by the LLVM backend.