Skip to content

Commit 5338bb2

Browse files
committed
Simplify target_config insert.
1 parent b8be3af commit 5338bb2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -700,11 +700,7 @@ impl<'cfg> RustcTargetData<'cfg> {
700700
if requested_kinds.iter().any(CompileKind::is_host) {
701701
let ct = CompileTarget::new(&rustc.host)?;
702702
target_info.insert(ct, host_info.clone());
703-
if target_applies_to_host {
704-
target_config.insert(ct, host_config.clone());
705-
} else {
706-
target_config.insert(ct, config.target_cfg_triple(&rustc.host)?);
707-
};
703+
target_config.insert(ct, config.target_cfg_triple(&rustc.host)?);
708704
};
709705

710706
let mut res = RustcTargetData {

0 commit comments

Comments
 (0)