mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Simplify target_config insert.
This commit is contained in:
parent
b8be3af7a4
commit
5338bb2af1
@ -700,11 +700,7 @@ impl<'cfg> RustcTargetData<'cfg> {
|
|||||||
if requested_kinds.iter().any(CompileKind::is_host) {
|
if requested_kinds.iter().any(CompileKind::is_host) {
|
||||||
let ct = CompileTarget::new(&rustc.host)?;
|
let ct = CompileTarget::new(&rustc.host)?;
|
||||||
target_info.insert(ct, host_info.clone());
|
target_info.insert(ct, host_info.clone());
|
||||||
if target_applies_to_host {
|
target_config.insert(ct, config.target_cfg_triple(&rustc.host)?);
|
||||||
target_config.insert(ct, host_config.clone());
|
|
||||||
} else {
|
|
||||||
target_config.insert(ct, config.target_cfg_triple(&rustc.host)?);
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
let mut res = RustcTargetData {
|
let mut res = RustcTargetData {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user