Skip to content

Commit

Permalink
docs: add Windows arm64 build instructions to BUILDING.md and improve…
Browse files Browse the repository at this point in the history
… error message in download_binaries.rs (#58)
  • Loading branch information
thewh1teagle authored Dec 25, 2024
1 parent a2f72fc commit fbaec8a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions BUILDING.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,3 +256,16 @@ Build
export RUSTFLAGS="-C link-arg=-fapple-link-rtlib" # See https://github.com/bmrlab/gendam/issues/96
cargo build --release --target aarch64-apple-ios
```

## Build for Windows arm64

1. Install toolchain in Visual Studio

Open Visual Studio Installer, go to Individual Components, search ARM64, select MSVC v[version] - ARM64 build tools, and click Modify.

1. Build

```console
rustup target add aarch64-pc-windows-msvc
cargo build --no-default-features --target aarch64-pc-windows-msvc --release
```
2 changes: 1 addition & 1 deletion crates/sherpa-rs-sys/src/download_binaries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ impl DistTable {
} else {
self.targets
.get(target)
.unwrap_or_else(|| panic!("Target {} not found", target))
.unwrap_or_else(|| panic!("Target {} not found. try to disable download-feature with --no-default-features.", target))
};
debug_log!(
"raw target_dist: {:?}",
Expand Down

0 comments on commit fbaec8a

Please sign in to comment.