dont overuse the wrapper

This commit is contained in:
Jane Lusby 2019-07-19 10:48:33 -07:00
parent 03feb61f75
commit 22b430d456

View File

@ -51,10 +51,7 @@ impl<'a, 'cfg> BuildContext<'a, 'cfg> {
units: &'a UnitInterner<'a>,
extra_compiler_args: HashMap<Unit<'a>, Vec<String>>,
) -> CargoResult<BuildContext<'a, 'cfg>> {
let mut rustc = config.load_global_rustc(Some(ws))?;
if let Some(wrapper) = &build_config.primary_unit_rustc {
rustc.set_wrapper(wrapper.clone());
}
let rustc = config.load_global_rustc(Some(ws))?;
let host_config = TargetConfig::new(config, &rustc.host)?;
let target_config = match build_config.requested_target.as_ref() {