Skip to main content
Log in

Mojo function

is_triple

is_triple[: string, //, name: StringLiteral[$0], target: target = _current_target()]() -> Bool

Returns True if the target triple of the compiler matches the input and False otherwise.

Parameters:

  • name (StringLiteral[$0]): The name of the triple value.
  • target (target): The triple value to be checked against.

Returns:

True if the triple matches and False otherwise.