From a9155c403fca9b91b0c30dc1161b0b6412656daf Mon Sep 17 00:00:00 2001 From: Arghyadip Chakraborty Date: Mon, 5 Jun 2023 17:23:08 +0530 Subject: [PATCH] ntdll link fix --- appveyor.yml | 8 ++++---- build.rs | 9 +-------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index ce32f0b..20799ce 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -12,9 +12,9 @@ environment: - host: i686-pc-windows-gnu channel: nightly - host: x86_64-pc-windows-gnu - channel: 1.64.0 + channel: 1.70.0 - host: i686-pc-windows-gnu - channel: 1.64.0 + channel: 1.70.0 install: - appveyor DownloadFile https://win.rustup.rs/ -FileName rustup-init.exe @@ -24,11 +24,11 @@ install: - rustc -vV - cargo -vV - if defined aarch64 ( - rustup target add aarch64-pc-windows-msvc + rustup target add aarch64-pc-windows-msvc ) build_script: - cargo test --verbose --color always --features "func-types impl-default user" - if defined aarch64 ( - cargo test --verbose --color always --features "func-types impl-default user" --target aarch64-pc-windows-msvc --no-run + cargo test --verbose --color always --features "func-types impl-default user" --target aarch64-pc-windows-msvc --no-run ) diff --git a/build.rs b/build.rs index 0ef7a9b..4602ecb 100644 --- a/build.rs +++ b/build.rs @@ -1,13 +1,6 @@ -use std::env::var; - fn main() { #[cfg(feature = "user")] { - if var("TARGET") - .map(|t| t == "x86_64-pc-windows-gnu" || t == "i686-pc-windows-gnu") - .unwrap_or(false) - { - println!("cargo:rustc-link-lib=ntdll"); - } + println!("cargo:rustc-link-lib=ntdll"); } }