mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 05:19:39 +00:00
cli: fix download for arm32 linux (#173374)
Once again, wishing target_* were statically typed... Fixes https://github.com/microsoft/vscode-remote-release/issues/7631
This commit is contained in:
parent
9992acd9af
commit
40f31f92d0
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue