public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/aoliva/heads/testme)] Add TFLAGS to gotools's GOCOMPILER
@ 2022-05-20 16:10 Alexandre Oliva
  0 siblings, 0 replies; only message in thread
From: Alexandre Oliva @ 2022-05-20 16:10 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:6bab1dd26084affbc9dd026718b9ce9a11af22b2

commit 6bab1dd26084affbc9dd026718b9ce9a11af22b2
Author: Alexandre Oliva <oliva@adacore.com>
Date:   Fri May 20 13:05:42 2022 -0300

    Add TFLAGS to gotools's GOCOMPILER
    
    In native builds, gotools uses GOC_FOR_TARGET as the compiler, but
    since it's a host tool, GOC_FOR_TARGET doesn't have TFLAGS added to
    it, so add it.
    
    
    for  gotools/ChangeLog
    
            * Makefile.am (GOCOMPILER) [NATIVE]: Add TFLAGS.
            * Makefile.in: Rebuilt.

Diff:
---
 gotools/Makefile.am | 4 ++--
 gotools/Makefile.in | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/gotools/Makefile.am b/gotools/Makefile.am
index 7b5302990f8..ce05614ebe6 100644
--- a/gotools/Makefile.am
+++ b/gotools/Makefile.am
@@ -31,8 +31,8 @@ LIBGODEP = $(libgodir)/libgo.la
 LIBGOTOOL = $(libgodir)/libgotool.a
 
 if NATIVE
-# Use the compiler we just built.
-GOCOMPILER = $(GOC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET)
+# Use the compiler we just built.  TFLAGS is passed down from the top level.
+GOCOMPILER = $(GOC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $(TFLAGS)
 else
 GOCOMPILER = $(GOC)
 endif
diff --git a/gotools/Makefile.in b/gotools/Makefile.in
index 2783b91ef4b..9a3a297c82c 100644
--- a/gotools/Makefile.in
+++ b/gotools/Makefile.in
@@ -341,8 +341,8 @@ LIBGODEP = $(libgodir)/libgo.la
 LIBGOTOOL = $(libgodir)/libgotool.a
 @NATIVE_FALSE@GOCOMPILER = $(GOC)
 
-# Use the compiler we just built.
-@NATIVE_TRUE@GOCOMPILER = $(GOC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET)
+# Use the compiler we just built.  TFLAGS is passed down from the top level.
+@NATIVE_TRUE@GOCOMPILER = $(GOC_FOR_TARGET) $(XGCC_FLAGS_FOR_TARGET) $(TFLAGS)
 GOCFLAGS = $(CFLAGS_FOR_TARGET)
 GOCOMPILE = $(GOCOMPILER) $(GOCFLAGS)
 AM_GOCFLAGS = -I $(libgodir)


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

only message in thread, other threads:[~2022-05-20 16:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-20 16:10 [gcc(refs/users/aoliva/heads/testme)] Add TFLAGS to gotools's GOCOMPILER Alexandre Oliva

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