mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-04-23 00:27:06 +08:00
11 lines
370 B
Rust
11 lines
370 B
Rust
use std::env;
|
|
|
|
fn main() {
|
|
let target_os = env::var("CARGO_CFG_TARGET_OS").unwrap_or_default();
|
|
let target_arch = env::var("CARGO_CFG_TARGET_ARCH").unwrap_or_default();
|
|
// enable thunk-rs when target os is windows and arch is x86_64 or i686
|
|
if target_os == "windows" && (target_arch == "x86" || target_arch == "x86_64") {
|
|
thunk::thunk();
|
|
}
|
|
}
|