Skip to content

Commit fbaec8a

Browse files
authored
docs: add Windows arm64 build instructions to BUILDING.md and improve error message in download_binaries.rs (#58)
1 parent a2f72fc commit fbaec8a

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

BUILDING.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,3 +256,16 @@ Build
256256
export RUSTFLAGS="-C link-arg=-fapple-link-rtlib" # See https://github.com/bmrlab/gendam/issues/96
257257
cargo build --release --target aarch64-apple-ios
258258
```
259+
260+
## Build for Windows arm64
261+
262+
1. Install toolchain in Visual Studio
263+
264+
Open Visual Studio Installer, go to Individual Components, search ARM64, select MSVC v[version] - ARM64 build tools, and click Modify.
265+
266+
1. Build
267+
268+
```console
269+
rustup target add aarch64-pc-windows-msvc
270+
cargo build --no-default-features --target aarch64-pc-windows-msvc --release
271+
```

crates/sherpa-rs-sys/src/download_binaries.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ impl DistTable {
144144
} else {
145145
self.targets
146146
.get(target)
147-
.unwrap_or_else(|| panic!("Target {} not found", target))
147+
.unwrap_or_else(|| panic!("Target {} not found. try to disable download-feature with --no-default-features.", target))
148148
};
149149
debug_log!(
150150
"raw target_dist: {:?}",

0 commit comments

Comments
 (0)