Skip to content

Commit 22b430d

Browse files
committed
dont overuse the wrapper
1 parent 03feb61 commit 22b430d

File tree

1 file changed

+1
-4
lines changed
  • src/cargo/core/compiler/build_context

1 file changed

+1
-4
lines changed

src/cargo/core/compiler/build_context/mod.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,7 @@ impl<'a, 'cfg> BuildContext<'a, 'cfg> {
5151
units: &'a UnitInterner<'a>,
5252
extra_compiler_args: HashMap<Unit<'a>, Vec<String>>,
5353
) -> CargoResult<BuildContext<'a, 'cfg>> {
54-
let mut rustc = config.load_global_rustc(Some(ws))?;
55-
if let Some(wrapper) = &build_config.primary_unit_rustc {
56-
rustc.set_wrapper(wrapper.clone());
57-
}
54+
let rustc = config.load_global_rustc(Some(ws))?;
5855

5956
let host_config = TargetConfig::new(config, &rustc.host)?;
6057
let target_config = match build_config.requested_target.as_ref() {

0 commit comments

Comments
 (0)