Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Don't try and run on armv5/6/7 (#20618)

Conrad Irwin7e349e52b111
diff --git a/crates/remote/src/ssh_session.rs b/crates/remote/src/ssh_session.rs
index b6c7b6875fa..c607f0a0ec3 100644
--- a/crates/remote/src/ssh_session.rs
+++ b/crates/remote/src/ssh_session.rs
@@ -1553,9 +1553,13 @@ impl SshRemoteConnection {
"Prebuilt remote servers are not yet available for {os:?}. See https://zed.dev/docs/remote-development"
))?,
};
- let arch = if arch.starts_with("arm") || arch.starts_with("aarch64") {
+ // exclude armv5,6,7 as they are 32-bit.
+ let arch = if arch.starts_with("armv8")
+ || arch.starts_with("armv9")
+ || arch.starts_with("aarch64")
+ {
"aarch64"
- } else if arch.starts_with("x86") || arch.starts_with("i686") {
+ } else if arch.starts_with("x86") {
"x86_64"
} else {
Err(anyhow!(