Skip to content

Commit 383ed4c

Browse files
David SalinasDavid Salinas
authored andcommitted
roc-obj uses incorrect path to find ROCm's llvm-objdump
SWDEV-448278 - [LLNLA-260] (ELCAP-546) roc-obj uses bad path Change-Id: I1a19f1fea29b301cfc183018fa050a8b8aeaaf02
1 parent 684fd60 commit 383ed4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hipamd/bin/roc-obj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
#| one containing the hard-link to the roc-obj being executed, known as the
5050
#| "base directory". Next, if the environment variable HIP_CLANG_PATH is set,
5151
#| it is searched; otherwise, the base directory path is appended with
52-
#| "../../llvm/bin" and it is searched. Finally, the PATH is searched as if by
52+
#| "../llvm/bin" and it is searched. Finally, the PATH is searched as if by
5353
#| a POSIX "execvp" function.
5454
#|
5555
#| Option Descriptions:
@@ -137,7 +137,7 @@ find_rocm_executable_or_fail() {
137137
local -r command="$1"; shift
138138
local file
139139
local searched=()
140-
for dir in "$BASE_DIR" "${HIP_CLANG_PATH:-"$BASE_DIR/../../llvm/bin"}"; do
140+
for dir in "$BASE_DIR" "${HIP_CLANG_PATH:-"$BASE_DIR/../llvm/bin"}"; do
141141
file="$dir/$command"
142142
if [[ -x $file ]]; then
143143
printf "%s" "$file"

0 commit comments

Comments
 (0)