From a9a5f581712d120e5d04928a4ab3988a04e3ef3f Mon Sep 17 00:00:00 2001 From: d3v-null Date: Tue, 30 Jul 2024 23:35:02 +0000 Subject: [PATCH] fix HIP_FLAGS set from env --- build.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/build.rs b/build.rs index e00b5313..43050317 100644 --- a/build.rs +++ b/build.rs @@ -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");