public inbox for binutils-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] PR15951, binutils testsuite builds status wrapper unconditionally
@ 2022-07-22  2:28 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2022-07-22  2:28 UTC (permalink / raw)
  To: bfd-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b5375c5da917828f801dff29e817895910f87536

commit b5375c5da917828f801dff29e817895910f87536
Author: Alan Modra <amodra@gmail.com>
Date:   Fri Jul 22 10:41:33 2022 +0930

    PR15951, binutils testsuite builds status wrapper unconditionally
    
            PR 15951
            * testsuite/binutils-all/objcopy.exp: Build testglue.o when
            needs_status_wrapper.

Diff:
---
 binutils/testsuite/binutils-all/objcopy.exp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/binutils/testsuite/binutils-all/objcopy.exp b/binutils/testsuite/binutils-all/objcopy.exp
index 9a5dad5384e..5871d431eea 100644
--- a/binutils/testsuite/binutils-all/objcopy.exp
+++ b/binutils/testsuite/binutils-all/objcopy.exp
@@ -641,7 +641,12 @@ proc copy_setup { } {
     global test_prog
     global host_triplet
 
-    set res [build_wrapper testglue.o]
+    if {[target_info exists needs_status_wrapper] && \
+	    [target_info needs_status_wrapper] != "0"} {
+	set res [build_wrapper testglue.o]
+    } else {
+	set res ""
+    }
     set flags { debug }
 
     if { [istarget *-*-uclinux*] && ![istarget tic6x-*-*] && ![istarget arm*-*-uclinuxfdpiceabi] } {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-22  2:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-22  2:28 [binutils-gdb] PR15951, binutils testsuite builds status wrapper unconditionally Alan Modra

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