diff --git a/hipamd/bin/roc-obj b/hipamd/bin/roc-obj index 0b0d12f5f2..cb5925d485 100755 --- a/hipamd/bin/roc-obj +++ b/hipamd/bin/roc-obj @@ -49,7 +49,7 @@ #| one containing the hard-link to the roc-obj being executed, known as the #| "base directory". Next, if the environment variable HIP_CLANG_PATH is set, #| it is searched; otherwise, the base directory path is appended with -#| "../../llvm/bin" and it is searched. Finally, the PATH is searched as if by +#| "../llvm/bin" and it is searched. Finally, the PATH is searched as if by #| a POSIX "execvp" function. #| #| Option Descriptions: @@ -137,7 +137,7 @@ find_rocm_executable_or_fail() { local -r command="$1"; shift local file local searched=() - for dir in "$BASE_DIR" "${HIP_CLANG_PATH:-"$BASE_DIR/../../llvm/bin"}"; do + for dir in "$BASE_DIR" "${HIP_CLANG_PATH:-"$BASE_DIR/../llvm/bin"}"; do file="$dir/$command" if [[ -x $file ]]; then printf "%s" "$file"