Fix building on Windows ARM64 (#485)

Tested building natively on Windows ARM64, with Rust 1.82 and VS2022 toolchains.
Basic functionality of easytier-cli, easytier-core and easytier-web has been verified.
This commit is contained in:
Sophon
2024-11-21 10:32:03 +08:00
committed by GitHub
parent aed54f7318
commit bc7c4d8cd0
6 changed files with 21 additions and 43 deletions

View File

@@ -69,7 +69,7 @@ quinn = { version = "0.11.0", optional = true, features = ["ring"] }
rustls = { version = "0.23.0", features = [
"ring",
], default-features = false, optional = true }
rcgen = { version = "0.11.1", optional = true }
rcgen = { version = "0.12.1", optional = true }
# for websocket
tokio-websockets = { version = "0.8", optional = true, features = [

View File

@@ -67,7 +67,12 @@ impl WindowsBuild {
pub fn check_for_win() {
// add third_party dir to link search path
#[cfg(target_arch = "x86_64")]
println!("cargo:rustc-link-search=native=easytier/third_party/");
#[cfg(target_arch = "aarch64")]
println!("cargo:rustc-link-search=native=easytier/third_party/arm64/");
let protoc_path = if let Some(o) = Self::check_protoc_exist() {
println!("cargo:info=use os exist protoc: {:?}", o);
o

BIN
easytier/third_party/arm64/Packet.dll vendored Normal file

Binary file not shown.

BIN
easytier/third_party/arm64/Packet.lib vendored Normal file

Binary file not shown.

BIN
easytier/third_party/arm64/wintun.dll vendored Normal file

Binary file not shown.