diff options
Diffstat (limited to 'level_zero-sys/build.rs')
-rw-r--r-- | level_zero-sys/build.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/level_zero-sys/build.rs b/level_zero-sys/build.rs deleted file mode 100644 index 0d2488c..0000000 --- a/level_zero-sys/build.rs +++ /dev/null @@ -1,17 +0,0 @@ -use env::VarError; -use std::{env, path::PathBuf}; - -fn main() -> Result<(), VarError> { - println!("cargo:rustc-link-lib=dylib=ze_loader"); - if cfg!(windows) { - let env = env::var("CARGO_CFG_TARGET_ENV")?; - if env == "msvc" { - let mut path = PathBuf::from(env::var("CARGO_MANIFEST_DIR")?); - path.push("lib"); - println!("cargo:rustc-link-search=native={}", path.display()); - } else { - println!("cargo:rustc-link-search=native=C:\\Windows\\System32"); - }; - } - Ok(()) -} |