public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] binutils/testsuite: handle the different install names of c++filt
@ 2022-09-26 14:11 Clément Chigot
  2022-09-26 15:22 ` Nick Clifton
  0 siblings, 1 reply; 2+ messages in thread
From: Clément Chigot @ 2022-09-26 14:11 UTC (permalink / raw)
  To: binutils; +Cc: Clément Chigot

c++filt is always named cxxfilt in a build directory, but in a install
directory it would be named either cxxfilt or c++filt (depending on
the host).  Handle this last case in testsuite.

binutils/ChangeLog:
        *  testsuite/config/default.exp (CXXFILE): if cxxfilt not found,
        try c++filt.
---
 binutils/testsuite/config/default.exp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/binutils/testsuite/config/default.exp b/binutils/testsuite/config/default.exp
index c654bd4081c..68f5bcb1102 100644
--- a/binutils/testsuite/config/default.exp
+++ b/binutils/testsuite/config/default.exp
@@ -92,7 +92,10 @@ if ![info exists DLLTOOL] then {
     set DLLTOOL [findfile $base_dir/dlltool]
 }
 if ![info exists CXXFILT] then {
-    set CXXFILT [findfile $base_dir/cxxfilt]
+    set CXXFILT [findfile $base_dir/cxxfilt $base_dir/cxxfilt [which [transform cxxfilt]]]
+    if {$CXXFILT == 0} then {
+	set CXXFILT [transform c++filt]
+    }
 }
 if ![info exists CXXFILTFLAGS] then {
     set CXXFILTFLAGS ""
-- 
2.25.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] binutils/testsuite: handle the different install names of c++filt
  2022-09-26 14:11 [PATCH] binutils/testsuite: handle the different install names of c++filt Clément Chigot
@ 2022-09-26 15:22 ` Nick Clifton
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Clifton @ 2022-09-26 15:22 UTC (permalink / raw)
  To: Clément Chigot, binutils

Hi Clément,

> binutils/ChangeLog:
>          *  testsuite/config/default.exp (CXXFILE): if cxxfilt not found,
>          try c++filt.

Approved - please apply.

Cheers
   Nick


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-26 15:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-26 14:11 [PATCH] binutils/testsuite: handle the different install names of c++filt Clément Chigot
2022-09-26 15:22 ` Nick Clifton

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).