Skip to content

Commit

Permalink
Simplify target_config insert.
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshilliard committed May 7, 2021
1 parent b8be3af commit 5338bb2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/cargo/core/compiler/build_context/target_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -700,11 +700,7 @@ impl<'cfg> RustcTargetData<'cfg> {
if requested_kinds.iter().any(CompileKind::is_host) {
let ct = CompileTarget::new(&rustc.host)?;
target_info.insert(ct, host_info.clone());
if target_applies_to_host {
target_config.insert(ct, host_config.clone());
} else {
target_config.insert(ct, config.target_cfg_triple(&rustc.host)?);
};
target_config.insert(ct, config.target_cfg_triple(&rustc.host)?);
};

let mut res = RustcTargetData {
Expand Down

0 comments on commit 5338bb2

Please sign in to comment.