Skip to content

Commit a985815

Browse files
committed
config: get_default_host_triple() should use from_host_or_build()
In order to resolve an issue where installing on x86_64 with the i686 installer would claim to want to install x86_64 and then install i686 instead, ensure that we match the obvious behaviour (install matching the host) by making the default for the config match that. Fixes: #2179 Signed-off-by: Daniel Silverstone <[email protected]>
1 parent 3008ac7 commit a985815

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ impl Cfg {
666666
.as_ref()
667667
.map(|s| dist::TargetTriple::new(&s)))
668668
})?
669-
.unwrap_or_else(dist::TargetTriple::from_build))
669+
.unwrap_or_else(dist::TargetTriple::from_host_or_build))
670670
}
671671

672672
pub fn resolve_toolchain(&self, name: &str) -> Result<String> {

0 commit comments

Comments
 (0)