mirror of
https://mirror.suhoan.cn/https://github.com/EasyTier/EasyTier.git
synced 2025-12-12 20:57:26 +08:00
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:
@@ -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 = [
|
||||
|
||||
@@ -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
BIN
easytier/third_party/arm64/Packet.dll
vendored
Normal file
Binary file not shown.
BIN
easytier/third_party/arm64/Packet.lib
vendored
Normal file
BIN
easytier/third_party/arm64/Packet.lib
vendored
Normal file
Binary file not shown.
BIN
easytier/third_party/arm64/wintun.dll
vendored
Normal file
BIN
easytier/third_party/arm64/wintun.dll
vendored
Normal file
Binary file not shown.
Reference in New Issue
Block a user