Function cargo::core::compiler::prepare_rustc
source · fn prepare_rustc(
cx: &Context<'_, '_>,
unit: &Unit
) -> CargoResult<ProcessBuilder>
Expand description
Prepares flags and environments we can compute for a rustc
invocation
before the job queue starts compiling any unit.
This builds a static view of the invocation. Flags depending on the completion of other units will be added later in runtime, such as flags from build scripts.