[m-dev.] diff: GCC back-end: tweak Make-lang.in for nightly builds
Fergus Henderson
fjh at cs.mu.OZ.AU
Mon Feb 12 02:40:43 AEDT 2001
Estimated hours taken: 0.75
gcc/mercury/Make-lang.in:
Don't try to build `mercury1' by default; instead just build
`libbackend.a' etc. This change is needed for integrating the
gcc back-end into the Mercury nightly builds.
Workspace: /home/hg2/public/test_mercury/test_dirs/hg/mercury-cvs
Index: gcc/mercury/Make-lang.in
===================================================================
RCS file: /home/staff/zs/imp/gcc/mercury/Make-lang.in,v
retrieving revision 1.5
diff -u -d -r1.5 Make-lang.in
--- gcc/mercury/Make-lang.in 2001/01/30 16:55:08 1.5
+++ gcc/mercury/Make-lang.in 2001/02/11 15:37:10
@@ -84,7 +84,18 @@
.PHONY: mercury MERCURY
-mercury MERCURY: mercury1$(exeext) mercury/testmercury$(exeext)
+# Note that we don't actually build the gcc Mercury front-end
+# (`mercury1'); instead we just build a library so that we can
+# link the gcc back-end into the Mercury compiler.
+# Building the gcc Mercury front-end would require that
+# the Mercury compiler library be already built.
+# Getting the order of builds right is somewhat tricky.
+
+# see comment above for why this is disabled:
+# mercury MERCURY: gcc_mercury_frontend
+mercury MERCURY: mercury_gcc_backend_libs
+
+gcc_mercury_frontend: mercury1$(exeext) mercury/testmercury$(exeext)
mercury1$(exeext): $(MERCURY_FRONT_END_LIBS) $(MERCURY_GCC_OBJS) \
$(BACKEND) $(LIBDEPS)
--
Fergus Henderson <fjh at cs.mu.oz.au> | "I have always known that the pursuit
| of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list