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 yourbootstrap.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 mainConfigstructure.
Re-exportsΒ§
use std::collections::HashMap;πuse std::path::PathBuf;πuse serde::de::Error;πuse serde::Deserialize;πuse serde::Deserializer;πuse crate::core::backend::CodegenBackendKind;πuse crate::core::config::macros::define_config;πuse crate::core::config::Allocator;πuse crate::core::config::CompilerBuiltins;πuse crate::core::config::CompressDebuginfo;πuse crate::core::config::LlvmLibunwind;πuse crate::core::config::SplitDebuginfo;πuse crate::core::config::StringOrBool;π
StructsΒ§
- Target
- Per-target configuration stored in the global configuration structure.
- Toml
Target - TOML representation of how each build target is configured.
EnumsΒ§
- Default
Linux Linker Override - 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 settingdefault-linker, which corresponds to-Clinker.
FunctionsΒ§
- default_
linux_ linker_ overrides - Set of linker overrides for selected Linux targets.