Skip to content

Commit

Permalink
cli: fix download for arm32 linux (microsoft#173374)
Browse files Browse the repository at this point in the history
Once again, wishing target_* were statically typed...

Fixes microsoft/vscode-remote-release#7631
  • Loading branch information
connor4312 authored and c-claeys committed Feb 16, 2023
1 parent 18d45eb commit 1b04e24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/src/update_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ impl Platform {
Some(Platform::LinuxAlpineARM64)
} else if cfg!(all(target_os = "linux", target_arch = "x86_64")) {
Some(Platform::LinuxX64)
} else if cfg!(all(target_os = "linux", target_arch = "armhf")) {
} else if cfg!(all(target_os = "linux", target_arch = "arm")) {
Some(Platform::LinuxARM32)
} else if cfg!(all(target_os = "linux", target_arch = "aarch64")) {
Some(Platform::LinuxARM64)
Expand Down
2 changes: 1 addition & 1 deletion cli/src/util/prereqs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl PreReqChecker {
if (gnu_a.is_ok() && gnu_b.is_ok()) || is_nixos {
return Ok(if cfg!(target_arch = "x86_64") {
Platform::LinuxX64
} else if cfg!(target_arch = "armhf") {
} else if cfg!(target_arch = "arm") {
Platform::LinuxARM32
} else {
Platform::LinuxARM64
Expand Down

0 comments on commit 1b04e24

Please sign in to comment.