Module target

Module target 

Source
Expand description

This module defines the structures and logic for handling target-specific configuration within the bootstrap.toml file. This allows you to customize build settings, tools, and flags for individual compilation targets.

It includes:

  • TomlTarget: This struct directly mirrors the [target.<triple>] sections in your bootstrap.toml. It’s used for deserializing raw TOML data for a specific target.
  • Target: This struct represents the processed and validated configuration for a build target, which is is stored in the main Config structure.

Structs§

Target
Per-target configuration stored in the global configuration structure.
TomlTarget
TOML representation of how each build target is configured.

Enums§

DefaultLinuxLinkerOverride
Overrides the default linker used on a Linux target. On Linux, the linker is usually invoked through cc, therefore this exists as a separate configuration from simply setting default-linker, which corresponds to -Clinker.

Functions§

default_linux_linker_overrides
Set of linker overrides for selected Linux targets.