Skip to content

Commit

Permalink
fix HIP_FLAGS set from env
Browse files Browse the repository at this point in the history
  • Loading branch information
d3v-null committed Jul 30, 2024
1 parent d9efdb6 commit a9a5f58
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,9 @@ mod gpu {

println!("cargo:rerun-if-env-changed=HIP_FLAGS");
if let Some(p) = env::var_os("HIP_FLAGS") {
println!(
"cargo:warning=HIP_FLAGS set from env {}",
p.to_string_lossy()
);
hip_target.flag(&*p.to_string_lossy());
let s: String = p.to_string_lossy().into();
println!("cargo:warning=HIP_FLAGS set from env {s}",);
hip_target.flag(&s);
}

println!("cargo:rerun-if-env-changed=ROCM_VER");
Expand Down

0 comments on commit a9a5f58

Please sign in to comment.