[m-dev.] diff: override EXTRA_MCFLAGS in term tests
Peter Ross
petdr at cs.mu.OZ.AU
Thu Feb 10 12:11:19 AEDT 2000
Hi,
===================================================================
Estimated hours taken: 0.75
tests/term/Mmakefile:
Ensure that the variable MCTRANSOPTFLAGS overrides any settings in
EXTRA_MCFLAGS.
Index: Mmakefile
===================================================================
RCS file: /home/staff/zs/imp/tests/term/Mmakefile,v
retrieving revision 1.14
diff -u -r1.14 Mmakefile
--- Mmakefile 2000/01/15 07:45:48 1.14
+++ Mmakefile 2000/02/10 01:09:48
@@ -73,7 +73,12 @@
--no-optimize-higher-order
MCTRANSOPTFLAGS = $(MCTERMFLAGS) $(MCOPTFLAGS)
-MCFLAGS=$(MCTRANSOPTFLAGS)
+ # if EXTRA_MCFLAGS=-O5 then --no-inlining must occur after the
+ # -O5 to turn inlining off.
+ # The following ensures that MCTRANSOPTFLAGS overrides any
+ # thing set by EXTRA_MCFLAGS, by placing them later in the
+ # argument list.
+ALL_MCTOIFLAGS+=$(MCTRANSOPTFLAGS)
%.trans_opt_res: %.trans_opt_exp $(trans_opts_subdir)%.trans_opt
diff -c $*.trans_opt_exp $(trans_opts_subdir)$*.trans_opt > $@
----
Peter Ross
PhD Student University of Melbourne
http://www.cs.mu.oz.au/~petdr/
--------------------------------------------------------------------------
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