mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
dont overuse the wrapper
This commit is contained in:
parent
03feb61f75
commit
22b430d456
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user