gdb/testsuite: look for hipcc in env(ROCM_PATH)
authorLancelot SIX <lancelot.six@amd.com>
Tue, 7 Feb 2023 15:13:47 +0000 (15:13 +0000)
committerLancelot SIX <lancelot.six@amd.com>
Mon, 13 Feb 2023 09:42:14 +0000 (09:42 +0000)
commitf9767e607d7fc0063556b5f2650dd7162d5af91a
treeec6f7e42a6af40d12865752efb35b9d7ae423a6c
parent39f6d7c6b06b06a0372284f30c86417a8c0d6ba5
gdb/testsuite: look for hipcc in env(ROCM_PATH)

If the hipcc compiler cannot be found in dejagnu's tool_root_dir, look
for it in $::env(ROCM_PATH) (if set).  If hipcc is still not found,
fallback to "hipcc" so the compiler will be searched in the PATH.  This
removes the fallback to the hard-coded "/opt/rocm/bin" prefix.

This change is done so ROCM tools are searched in a uniform manner.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/testsuite/lib/future.exp