Skip to content

Commit

Permalink
ntdll link fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arghyadipchak committed Jun 5, 2023
1 parent a24e303 commit a9155c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
8 changes: 4 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
)
9 changes: 1 addition & 8 deletions build.rs
Original file line number Diff line number Diff line change
@@ -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");
}
}

0 comments on commit a9155c4

Please sign in to comment.