]> git.proxmox.com Git - rustc.git/blob - vendor/ntapi/build.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / ntapi / build.rs
1 use std::env::var;
2
3 fn main() {
4 #[cfg(feature = "user")] {
5 if var("TARGET").map(
6 |t| t == "x86_64-pc-windows-gnu" || t == "i686-pc-windows-gnu"
7 ).unwrap_or(false) {
8 if var("WINAPI_NO_BUNDLED_LIBRARIES").is_ok() {
9 println!("cargo:rustc-link-lib=ntdll");
10 } else {
11 println!("cargo:rustc-link-lib=winapi_ntdll");
12 }
13 }
14 }
15 }