pub struct Prepared {
pub env: Env,
pub sdk: Option<WindowsSdk>,
pub ignored: Vec<&'static str>,
pub gcc: Option<Install>,
}Expand description
The environment the selected compiler runs in.
Fields§
§env: EnvThe process environment with the MSVC toolset’s and the Windows SDK’s paths applied, or as given when no toolset is used.
sdk: Option<WindowsSdk>The Windows SDK, when a toolset is used.
ignored: Vec<&'static str>The TOOL_OPTION_VARIABLES that were set and are left out of
env, for the build to warn about.
gcc: Option<Install>What GCC builds with besides its command line, when GCC is used.
Implementations§
Source§impl Prepared
impl Prepared
Sourcepub fn include_dirs(&self) -> Vec<PathBuf>
pub fn include_dirs(&self) -> Vec<PathBuf>
The include directories the compiler searches for the system and
standard headers: the resolved INCLUDE, in order, when the
environment was prepared for an MSVC toolset; GCC’s own, as it told
them, for GCC; else none, whatever the process’s own INCLUDE says.
The one place an MSVC environment’s include path is read, so a
compiler with no toolset never takes it as its include path
(compile_commands.json, the build records, clang-tidy).
Sourcepub fn identity(&self, version: &str) -> Vec<OsString>
pub fn identity(&self, version: &str) -> Vec<OsString>
What besides each compile’s arguments identifies its command: the
compiler’s version, the variables of the environment that decide
which headers and libraries it reads, and for GCC the runtime files
it links into every program (build.md, “Deciding what changed”).