bootstrap/core/config/toml/gcc.rs
1//! This module defines the `Gcc` struct, which represents the `[gcc]` table
2//! in the `bootstrap.toml` configuration file.
3//!
4//! The `[gcc]` table contains options specifically related to building or
5//! acquiring the GCC compiler for use within the Rust build process.
6
7use std::path::PathBuf;
8
9use serde::{Deserialize, Deserializer};
10
11use crate::core::config::Merge;
12use crate::core::config::toml::ReplaceOpt;
13use crate::define_config;
14
15define_config! {
16 /// TOML representation of how the GCC build is configured.
17 #[derive(Default)]
18 struct Gcc {
19 download_ci_gcc: Option<bool> = "download-ci-gcc",
20 libgccjit_libs_dir: Option<PathBuf> = "libgccjit-libs-dir",
21 }
22}