[binutils-gdb] cgen: split GUILE setting out

Michael Frysinger vapier@sourceware.org
Thu Jul 1 22:05:48 GMT 2021


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

commit 2fe36d31f96519ea5ef988d85df1310bc177b5fa
Author: Mike Frysinger <vapier@gentoo.org>
Date:   Mon Jun 28 21:26:48 2021 -0400

    cgen: split GUILE setting out
    
    This makes it easier to override to point to an older version of guile.
    The current cgen code doesn't work with guile-2, so need to point to an
    older guile-1.8.

Diff:
---
 opcodes/ChangeLog         | 6 ++++++
 opcodes/Makefile.am       | 3 ++-
 opcodes/Makefile.in       | 3 ++-
 sim/common/ChangeLog      | 5 +++++
 sim/common/Make-common.in | 3 ++-
 5 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 1205dbfa95f..b3d73dcd4ae 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,3 +1,9 @@
+2021-07-01  Mike Frysinger  <vapier@gentoo.org>
+
+	* Makefile.am (GUILE): New variable.
+	(CGEN): Use $(GUILE).
+	* Makefile.in: Regenerate.
+
 2021-07-01  Mike Frysinger  <vapier@gentoo.org>
 
 	* mep-asm.c (macros): Mark static & const.
diff --git a/opcodes/Makefile.am b/opcodes/Makefile.am
index ddae8bd9052..0e04b4c05c4 100644
--- a/opcodes/Makefile.am
+++ b/opcodes/Makefile.am
@@ -363,7 +363,8 @@ CLEANFILES = \
 
 CGENDIR = @cgendir@
 CPUDIR = $(srcdir)/../cpu
-CGEN = "`if test -f ../guile/libguile/guile ; then echo ../guile/libguile/guile; else echo guile ; fi` -l ${cgendir}/guile.scm -s"
+GUILE = `if test -f ../guile/libguile/guile ; then echo ../guile/libguile/guile; else echo guile ; fi`
+CGEN = "$(GUILE) -l ${cgendir}/guile.scm -s"
 CGENFLAGS = -v
 
 CGENDEPS = \
diff --git a/opcodes/Makefile.in b/opcodes/Makefile.in
index 23a52bcd69a..42c15f00d30 100644
--- a/opcodes/Makefile.in
+++ b/opcodes/Makefile.in
@@ -722,7 +722,8 @@ CLEANFILES = \
 
 CGENDIR = @cgendir@
 CPUDIR = $(srcdir)/../cpu
-CGEN = "`if test -f ../guile/libguile/guile ; then echo ../guile/libguile/guile; else echo guile ; fi` -l ${cgendir}/guile.scm -s"
+GUILE = `if test -f ../guile/libguile/guile ; then echo ../guile/libguile/guile; else echo guile ; fi`
+CGEN = "$(GUILE) -l ${cgendir}/guile.scm -s"
 CGENFLAGS = -v
 CGENDEPS = \
 	$(CGENDIR)/desc.scm $(CGENDIR)/desc-cpu.scm \
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 5b167eb89ae..37d4dc99e92 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,8 @@
+2021-07-01  Mike Frysinger  <vapier@gentoo.org>
+
+	* Make-common.in (GUILE): New variable.
+	(CGEN): Use $(GUILE).
+
 2021-06-30  Mike Frysinger  <vapier@gentoo.org>
 
 	* Make-common.in (SIM_SCACHE): Delete.
diff --git a/sim/common/Make-common.in b/sim/common/Make-common.in
index e7c1cce46f4..a02f529b385 100644
--- a/sim/common/Make-common.in
+++ b/sim/common/Make-common.in
@@ -542,7 +542,8 @@ Makefile: Makefile.in $(srccom)/Make-common.in $(config.status)
 
 # CGEN support
 
-CGEN = "`if [ -f ../../guile/libguile/guile ]; then echo ../../guile/libguile/guile; else echo guile ; fi` -l $(CGENDIR)/guile.scm -s"
+GUILE = `if [ -f ../../guile/libguile/guile ]; then echo ../../guile/libguile/guile; else echo guile ; fi`
+CGEN = "$(GUILE) -l $(CGENDIR)/guile.scm -s"
 CGENFLAGS = -v
 CGEN_CPU_DIR = $(CGENDIR)/cpu


More information about the Gdb-cvs mailing list