trivial diff: Mmake.common.in: support MCFLAGS-foo

Fergus Henderson fjh at cs.mu.OZ.AU
Sat Jul 25 22:06:48 AEST 1998


Mmake.common.in:
	Add `$(MCFLAGS-$*)' to the definition of `MCFLAGS', so that
	you can override MCFLAGS for particular files
	(e.g. putting `MCFLAGS-map = --trace all' in Mmake.params
	is useful for debugging `map__lookup failed' errors).

Index: Mmake.common.in
===================================================================
RCS file: /home/mercury1/repository/mercury/Mmake.common.in,v
retrieving revision 1.26
diff -u -r1.26 Mmake.common.in
--- Mmake.common.in	1998/03/04 05:24:23	1.26
+++ Mmake.common.in	1998/07/09 17:11:18
@@ -169,7 +169,7 @@
 UTIL_DIR = $(MERCURY_DIR)/util
 
 # Options to pass to the Mercury compiler
-MCFLAGS	= --no-infer-all --halt-at-warn $(EXTRA_MCFLAGS)
+MCFLAGS	= --no-infer-all --halt-at-warn $(MCFLAGS-$*) $(EXTRA_MCFLAGS)
 
 # Do we want to deal with intermodule information when building the library?
 # By default yes, since this way we note immediately when intermodule

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.



More information about the developers mailing list