[m-rev.] for review: minor improvement to ilasm use in library/Mmakefile

Fergus Henderson fjh at cs.mu.OZ.AU
Thu May 17 04:46:05 AEST 2001


I picked this idea up from Serge Lidin on the Dotnet mailing list.
The following is as yet untested.

Estimated hours taken: 0.5
Branches: main

library/Mmakefile:
	Invoke ILASM on multiple .il files at once,
	rather than using `cat' to concatenate them together.
	This reduces disk space usage and compilation time a little.

Index: Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/library/Mmakefile,v
retrieving revision 1.66
diff -u -d -u -r1.66 Mmakefile
--- Mmakefile	2001/05/14 14:38:11	1.66
+++ Mmakefile	2001/05/16 18:27:23
@@ -256,8 +256,9 @@
 library_strong_name.sn:
 	sn -k library_strong_name.sn
 
-mercury_all.il: $(library.ils)
-	cat $(library.ils) > mercury_all.il	
+$(os_subdir)mercury_all.dll : $(library.ils)
+	rm -f $@
+	$(MS_ILASM) $(ALL_MS_ILASMFLAGS) /dll /quiet /OUT=$@ $(library.ils)
 
 mercury.dll: $(HACK_ALL_DLLS) mercury_all.dll library_strong_name.sn
 	cp $(RUNTIME_DLLS) .

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