mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-09-03 17:45:44 +00:00
增加easytier_ffi对Windows7的兼容 (#2458)
This commit is contained in:
@@ -26,3 +26,9 @@ log = "0.4"
|
|||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
serde_json = "1"
|
serde_json = "1"
|
||||||
uuid = "1.17.0"
|
uuid = "1.17.0"
|
||||||
|
|
||||||
|
[build-dependencies]
|
||||||
|
thunk-rs = { git = "https://github.com/easytier/thunk.git", default-features = false, features = [
|
||||||
|
"win7",
|
||||||
|
] }
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fn main() {
|
||||||
|
let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default();
|
||||||
|
let target_arch = std::env::var("CARGO_CFG_TARGET_ARCH").unwrap_or_default();
|
||||||
|
|
||||||
|
if target_os == "windows" && (target_arch == "x86" || target_arch == "x86_64") {
|
||||||
|
thunk::thunk();
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user