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 crate::core::config::macros::define_config;
10
11define_config! {
12 /// TOML representation of how the GCC build is configured.
13 #[derive(Default)]
14 struct Gcc {
15 download_ci_gcc: Option<bool> = "download-ci-gcc",
16 libgccjit_libs_dir: Option<PathBuf> = "libgccjit-libs-dir",
17 }
18}