Stop using import libs in zluda_inject

This commit is contained in:
Andrzej Janik
2025-05-26 22:35:21 +02:00
parent 5935cfec78
commit a70bdb6b6b
4 changed files with 2 additions and 1 deletions

View File

@ -43,7 +43,6 @@ fn main() -> Result<(), VarError> {
rustc_cmd.arg(r"-lucrt");
}
rustc_cmd
.arg("-ldylib=nvcuda")
.arg("-C")
.arg(format!("opt-level={}", opt_level))
.arg("-L")

View File

@ -1,5 +1,6 @@
#![crate_type = "bin"]
#[link(name = "nvcuda", kind = "raw-dylib")]
extern "system" {
fn cuInit(flags: u32) -> u32;
}

View File

@ -1,5 +1,6 @@
#![crate_type = "cdylib"]
#[link(name = "nvcuda", kind = "raw-dylib")]
extern "system" {
fn cuInit(flags: u32) -> u32;
}