target_triple

target_triple

Mojo function 🡭

target_triple

fn def target_triple() -> StaticString

The current compilation target triple, e.g. “x86_64-unknown-linux-gnu”.

Useful for selecting an architecture-specific backend. Prefer the dedicated CompilationTarget predicates (e.g. has_neon()) where they exist; note that CompilationTarget.is_x86() only matches 32-bit x86, not x86-64, so matching on this triple is the reliable way to detect an x86-64 target.

Returns:

StaticString: The target triple of the current compilation target.