target_triple_contains_any
Mojo function 🡭
target_triple_contains_any
fn def target_triple_contains_any(needles: List[StringSpan[ImmStaticOrigin]]) -> BoolWhether the current target triple contains any of the given substrings.
Useful for detecting an architecture family that has no dedicated
CompilationTarget predicate.
Args:
- needles (
List[StringSpan[ImmStaticOrigin]]): Substrings to look for in the target triple.
Returns:
Bool: True if the target triple contains at least one of needles.