cargo::core::compiler

Function add_custom_flags

Source
fn add_custom_flags(
    cmd: &mut ProcessBuilder,
    build_script_outputs: &BuildScriptOutputs,
    metadata: Option<UnitHash>,
) -> CargoResult<()>
Expand description

Adds extra rustc flags and environment variables collected from the output of a build-script to the command to execute, include custom environment variables and cfg.