public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb/testsuite: look for hipcc in env(ROCM_PATH)
@ 2023-02-13 9:52 Lancelot SIX
0 siblings, 0 replies; only message in thread
From: Lancelot SIX @ 2023-02-13 9:52 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f9767e607d7fc0063556b5f2650dd7162d5af91a
commit f9767e607d7fc0063556b5f2650dd7162d5af91a
Author: Lancelot SIX <lancelot.six@amd.com>
Date: Tue Feb 7 15:13:47 2023 +0000
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>
Diff:
---
gdb/testsuite/lib/future.exp | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/gdb/testsuite/lib/future.exp b/gdb/testsuite/lib/future.exp
index 5720d3837d5..fa839fcd12b 100644
--- a/gdb/testsuite/lib/future.exp
+++ b/gdb/testsuite/lib/future.exp
@@ -125,8 +125,11 @@ proc gdb_find_hipcc {} {
global tool_root_dir
if {![is_remote host]} {
set hipcc [lookfor_file $tool_root_dir hipcc]
- if {$hipcc == ""} {
- set hipcc [lookfor_file /opt/rocm/bin hipcc]
+ if {$hipcc eq "" && [info exists ::env(ROCM_PATH)]} {
+ set hipcc [lookfor_file $::env(ROCM_PATH)/bin hipcc]
+ }
+ if {$hipcc eq ""} {
+ set hipcc hipcc
}
} else {
set hipcc ""
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-02-13 9:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-13 9:52 [binutils-gdb] gdb/testsuite: look for hipcc in env(ROCM_PATH) Lancelot SIX
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).