Skip to main content

Module target_support

Module target_support 

Source
Expand description

Cross-platform target support for code generation.

This module defines which (architecture, OS) combinations are supported for assembly and binary emission, so callers can cross-compile to a different target than the host.

Functionsยง

is_assembly_supported
Returns true if assembly text generation is supported for this (arch, os).
os_uses_coff
Returns true if the given OS uses COFF/PE (Windows).
os_uses_elf
Returns true if the given OS uses ELF object format (Linux, BSD, Redox).
os_uses_macho
Returns true if the given OS uses Mach-O (macOS).
supported_assembly_targets_hint
Returns a short description of supported targets for error messages.