Skip to main content

Crate gruel_target

Crate gruel_target 

Source
Expand description

Target architecture and OS definitions for the Gruel compiler.

Backed by [target_lexicon::Triple], so any triple LLVM understands can be parsed and used. The compiler-internal Arch and Os enums are derived from the lexicon’s fields rather than hardcoded.

See ADR-0077 for the design.

Structs§

Target
A compilation target, identified by an LLVM-style triple.
TargetParseError
Error returned when a target triple fails to parse.

Enums§

Arch
The CPU architecture of a target.
Os
The operating system of a target.