Skip to content

Commit a9a5f58

Browse files
committed
fix HIP_FLAGS set from env
1 parent d9efdb6 commit a9a5f58

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

build.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,9 @@ mod gpu {
180180

181181
println!("cargo:rerun-if-env-changed=HIP_FLAGS");
182182
if let Some(p) = env::var_os("HIP_FLAGS") {
183-
println!(
184-
"cargo:warning=HIP_FLAGS set from env {}",
185-
p.to_string_lossy()
186-
);
187-
hip_target.flag(&*p.to_string_lossy());
183+
let s: String = p.to_string_lossy().into();
184+
println!("cargo:warning=HIP_FLAGS set from env {s}",);
185+
hip_target.flag(&s);
188186
}
189187

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

0 commit comments

Comments
 (0)