[m-rev.] diff: force gcc back-end files to be compiled

Fergus Henderson fjh at cs.mu.OZ.AU
Sun Jun 24 16:58:01 AEST 2001


Estimated hours taken: 0.5
Branches: main

compiler/Mmakefile:
	Make sure that mlds_to_gcc.m and gcc.m get compiled by the
	Mercury compiler, even if the GCC back-end isn't enabled.
	This is to reduce the likelihood of people making changes
	that break the GCC back-end.

Workspace: /home/mars/fjh/ws1/mercury
Index: compiler/Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/Mmakefile,v
retrieving revision 1.43
diff -u -d -r1.43 Mmakefile
--- compiler/Mmakefile	2001/05/11 01:02:56	1.43
+++ compiler/Mmakefile	2001/06/24 05:37:20
@@ -197,6 +197,7 @@
 .PHONY: depend
 depend:		mercury_compile.depend
 
+.PHONY: mercury_compile.depend
 mercury_compile.depend: regenerate_preprocessed_files
 
 .PHONY: all
@@ -207,6 +208,23 @@
 
 .PHONY: libmmc
 libmmc:		libmercury_compile.a mercury_compile_init.$O
+
+#-----------------------------------------------------------------------------#
+
+# The GCC back-end stuff is conditionally compiled out of maybe_mlds_to_gcc.m.
+# But we want to make sure that the GCC back-end continues to compile,
+# even when the compiler was configured without the GCC back-end.
+# So we include the following rules, which tell Mmake to build the
+# dependencies for mlds_to_gcc and to build mlds_to_gcc.err and gcc.err.
+
+.PHONY: depend
+depend:		mlds_to_gcc.depend
+
+.PHONY: mlds_to_gcc.depend
+mlds_to_gcc.depend: regenerate_preprocessed_files
+
+.PHONY: mercury
+mercury:	mlds_to_gcc.err gcc.err
 
 #-----------------------------------------------------------------------------#
 

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list