[m-rev.] diff: skip boehm_gc for grades which won't use it

Fergus Henderson fjh at cs.mu.OZ.AU
Thu Dec 11 14:58:47 AEDT 2003


Estimated hours taken: 0.25
Branches: main

boehm_gc/Mmakefile:
	Don't build the Boehm collector in grades which won't use it,
	e.g. `--gc none' or `--gc accurate' grades.  Previously we
	were avoiding building it for the IL and Java backends,
	but we should do the same for C backend grades which don't
	use the Boehm collector.

Workspace: /home/jupiter/fjh/ws-jupiter/mercury
Index: boehm_gc/Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/boehm_gc/Mmakefile,v
retrieving revision 1.26
diff -u -d -r1.26 Mmakefile
--- boehm_gc/Mmakefile	9 Dec 2003 14:57:49 -0000	1.26
+++ boehm_gc/Mmakefile	11 Dec 2003 03:51:57 -0000
@@ -20,9 +20,11 @@
 
 .PHONY: lib$(GC_GRADE)
 
-ifneq ("$(filter il% java%,$(GRADE))","")        
+ifneq ("$(filter nogc mps,$(GC_GRADE))","")
 
-# no need to build a garbage collector for the .NET or Java backends.
+# No need to build the Boehm garbage collector for grades which don't use it
+# (this includes the .NET and Java backends, and for the C backend
+# grades with `--gc none', `--gc mps', or `--gc accurate').
 
 lib$(GC_GRADE):
 
@@ -139,9 +141,9 @@
 	-[ -d $(INSTALL_MERC_GC_LIB_DIR) ] || \
 		mkdir -p $(INSTALL_MERC_GC_LIB_DIR)
 
-ifneq ("$(filter il% java%,$(GRADE))","")        
+ifneq ("$(filter nogc mps,$(GC_GRADE))","")
 
-# no need to build a garbage collector for the .NET or Java backends.
+# No need to install the Boehm collector for grades which don't use it.
 
 .PHONY: install_headers
 install_headers:

-- 
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