diff options
author | Andrzej Janik <[email protected]> | 2024-11-17 02:12:28 +0000 |
---|---|---|
committer | Andrzej Janik <[email protected]> | 2024-11-17 02:12:28 +0000 |
commit | fa94cdfc16057fc5491a5b72686787b6b2fc8b35 (patch) | |
tree | d7b9bfafe78aac0ec11a5d8092e587029468041d /zluda/build.rs | |
parent | 6d8819f2faf6e35c2cb18f219131704d38dd16a5 (diff) | |
download | ZLUDA-fa94cdfc16057fc5491a5b72686787b6b2fc8b35.tar.gz ZLUDA-fa94cdfc16057fc5491a5b72686787b6b2fc8b35.zip |
Generate CUDA types ahead of time
Diffstat (limited to 'zluda/build.rs')
-rw-r--r-- | zluda/build.rs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/zluda/build.rs b/zluda/build.rs deleted file mode 100644 index 94c2c6f..0000000 --- a/zluda/build.rs +++ /dev/null @@ -1,20 +0,0 @@ -use env::VarError;
-use std::{env, path::PathBuf};
-
-// HACK ALERT
-// This is a temporary hack to to make sure that linker does not pick up
-// NVIDIA OpenCL .lib using paths injected by cl-sys
-
-fn main() -> Result<(), VarError> {
- 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(())
-}
|