Skip to content

A modern terminal with a built-in multiplexer: close it and your sessions keep running. Run shells and tons of AI agents across your machines, then pick them up from desktop, browser, TUI and more. Written in Rust with no UI framework: interface drawn straight on the GPU. No Electron, GPUI or webview.

build(windows): skip sha2-asm on arm64 MSVC

RoversX7a278fc32208
diff --git a/wezterm-cell/Cargo.toml b/wezterm-cell/Cargo.toml
index 120d79e9..29505e7c 100644
--- a/wezterm-cell/Cargo.toml
+++ b/wezterm-cell/Cargo.toml
@@ -29,8 +29,9 @@ wezterm-dynamic.workspace = true
# Scoped to aarch64 so `sha2-asm` (a C crate) never enters the wasm sentinel
# or cross-build dependency graphs. The aarch64 implementation is actually
# pure-Rust intrinsics with runtime detection; sha2-asm just rides along as
-# the feature's carrier.
-[target.'cfg(target_arch = "aarch64")'.dependencies]
+# the feature's carrier. Not on MSVC: sha2-asm's .S file is handed to cl.exe,
+# which cannot assemble it, so Windows on arm64 takes the software path.
+[target.'cfg(all(target_arch = "aarch64", not(target_env = "msvc")))'.dependencies]
sha2 = {workspace=true, optional=true, features=["asm"]}
[features]