This patch sets GUILE to just plain 'guile'.
In the distant ("devo") past, the top-level build did support building
Guile in-tree. However, I don't think this really works any more.
For one thing, there are no build dependencies on it, so there's no
guarantee it would actually be built before the uses.
This patch also removes the use of "-s" as an option to cgen scheme
scripts. With my latest patch upstream, this is no longer needed.
After the upstream changes, either Guile 2 or Guile 3 will work, with
or without the compiler enabled.
2023-08-24 Tom Tromey <tom@tromey.com>
* cgen.sh: Don't pass "-s" to cgen.
* Makefile.in: Rebuild.
* Makefile.am (GUILE): Simplify.
+2023-08-24 Tom Tromey <tom@tromey.com>
+
+ * cgen.sh: Don't pass "-s" to cgen.
+ * Makefile.in: Rebuild.
+ * Makefile.am (GUILE): Simplify.
+
2023-07-31 Jose E. Marchesi <jose.marchesi@oracle.com>
PR 30705
CGENDIR = @cgendir@
CPUDIR = $(srcdir)/../cpu
-GUILE = `if test -f ../guile/libguile/guile ; then echo ../guile/libguile/guile; else echo guile ; fi`
+GUILE = guile
CGEN = "$(GUILE) -l ${cgendir}/guile.scm -s"
CGENFLAGS = -v
CGENDIR = @cgendir@
CPUDIR = $(srcdir)/../cpu
-GUILE = `if test -f ../guile/libguile/guile ; then echo ../guile/libguile/guile; else echo guile ; fi`
+GUILE = guile
CGEN = "$(GUILE) -l ${cgendir}/guile.scm -s"
CGENFLAGS = -v
CGENDEPS = \
# Run CGEN.
${cgen} ${cgendir}/cgen-opc.scm \
- -s ${cgendir} \
${cgenflags} \
-f "${options}" \
-m all \
rm -f ${tmp}-opc.h1 ${tmp}-opc.h
${cgen} ${cgendir}/cgen-opc.scm \
- -s ${cgendir} \
${cgenflags} \
-OPC ${opcfile} \
-f "${archflags}" \
$(LIBGNU) \
$(LIBGNU_EXTRA_LIBS)
-GUILE = $(or $(wildcard ../guile/libguile/guile),guile)
+GUILE = guile
CGEN = "$(GUILE) -l $(cgendir)/guile.scm -s"
CGENFLAGS = -v
CGEN_CPU_DIR = $(cgendir)/cpu
rm -f ${tmp}-all.h1 ${tmp}-all.h
${cgen} ${cgendir}/cgen-sim.scm \
- -s ${cgendir} \
${cgenflags} \
-f "${archflags}" \
-m ${mach} \
esac
${cgen} ${cgendir}/cgen-sim.scm \
- -s ${cgendir} \
${cgenflags} \
-f "${archflags}" \
-m ${mach} \
rm -f ${tmp}-defs.h1 ${tmp}-defs.h
${cgen} ${cgendir}/cgen-sim.scm \
- -s ${cgendir} \
${cgenflags} \
-f "${archflags}" \
-m ${mach} \
rm -f ${tmp}-opc.h1 ${tmp}-opc.h
${cgen} ${cgendir}/cgen-opc.scm \
- -s ${cgendir} \
${cgenflags} \
-OPC ${opcfile} \
-f "${archflags}" \
##
## If the local tree has a bundled copy of guile, use that.
-GUILE = $(or $(wildcard ../guile/libguile/guile),guile)
+GUILE = guile
CGEN = "$(GUILE) -l $(cgendir)/guile.scm -s"
CGENFLAGS = -v
CGEN_CPU_DIR = $(cgendir)/cpu