From 3d2264902ade0a2dfceded17f5ec11f3a3aff88f Mon Sep 17 00:00:00 2001 From: Konstantin Zhuravlyov Date: Tue, 11 Jul 2023 11:35:44 -0400 Subject: [PATCH] SWDEV-409068 - Fix can_run arg --- bin/hipvars.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/hipvars.pm b/bin/hipvars.pm index 0d5abf0..c4b37d5 100644 --- a/bin/hipvars.pm +++ b/bin/hipvars.pm @@ -124,7 +124,7 @@ if (defined $HIP_RUNTIME and $HIP_RUNTIME eq "rocclr" and !defined $HIP_ROCCLR_H } if (not defined $HIP_PLATFORM) { - if (can_run("$HIP_CLANG_PATH/clang++") or can_run("clang++")) { + if (can_run("\"$HIP_CLANG_PATH/clang++\"") or can_run("clang++")) { $HIP_PLATFORM = "amd"; } elsif (can_run("$CUDA_PATH/bin/nvcc") or can_run("nvcc")) { $HIP_PLATFORM = "nvidia";