Skip to content

Commit

Permalink
dont overuse the wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
yaahc committed Jul 19, 2019
1 parent 03feb61 commit 22b430d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/cargo/core/compiler/build_context/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 22b430d

Please sign in to comment.