mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-08-02 14:57:43 +03:00
Remove verbatim requirement for linking
This commit is contained in:
14
ext/rocblas-sys/build.rs
vendored
14
ext/rocblas-sys/build.rs
vendored
@ -1,18 +1,8 @@
|
||||
use std::env::VarError;
|
||||
|
||||
fn main() -> Result<(), VarError> {
|
||||
if cfg!(windows) {
|
||||
// println!("cargo:rustc-link-lib=dylib=rocblas_4");
|
||||
// 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");
|
||||
// };
|
||||
} else {
|
||||
println!("cargo:rustc-link-lib=dylib:+verbatim=librocblas.so.4");
|
||||
if !cfg!(windows) {
|
||||
println!("cargo:rustc-link-lib=dylib=rocblas");
|
||||
println!("cargo:rustc-link-search=native=/opt/rocm/lib/");
|
||||
}
|
||||
Ok(())
|
||||
|
Reference in New Issue
Block a user