IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /docs/manual/basics.md). For the complete Mojo documentation index, see llms.txt.
Skip to main content
Version: Nightly
For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).

info

Implements methods for querying the host target info.

You can import these APIs from the sys package. For example:

from std.sys import CompilationTarget

print(CompilationTarget.is_x86())

Structs​

  • ​CompilationTarget: A struct that provides information about a target architecture.
  • ​Endian: A byte order: the order in which a multi-byte value's bytes are stored.

Functions​