[m-rev.] diff: .NET library Mmakefile fix

Fergus Henderson fjh at cs.mu.OZ.AU
Sat Nov 2 17:03:55 AEDT 2002


Estimated hours taken: 0.25
Branches: main

library/Mmakefile:
	Fix some errors in the `mmake install_debug_library' target.

Index: Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/library/Mmakefile,v
retrieving revision 1.98
diff -u -d -u -r1.98 Mmakefile
--- Mmakefile	25 Oct 2002 02:29:57 -0000	1.98
+++ Mmakefile	2 Nov 2002 06:05:37 -0000
@@ -204,6 +204,7 @@
 RUNTIME_DLLS=mercury_mcpp.dll mercury_il.dll
 
 # Turn this on if you wish to enable .NET debugging.
+# But see the comments below about the install_debug_library target.
 DEBUG_MS_ILASMFLAGS=
 #DEBUG_MS_ILASMFLAGS=/debug
 #DEBUG_MS_CLFLAGS=/Zi
@@ -382,19 +383,19 @@
 #
 # XXX Unfortunately, however, this is a problem with AL, which prohibits
 # linking debuggable C# code with IL or MC++ code.  The following
-# horrible hack avoids that problem.  After modify Mmake.params as
+# horrible hack avoids that problem.  After modifying Mmake.params as
 # described above, invoke `mmake install_debug_library'.
 
 .PHONY: install_debug_library
 install_debug_library:
-	-mmake library
-	mmake munge_dll_debug_info
-	mmake install_library
+	-$(MMAKE) $(MMAKEFLAGS)
+	$(MMAKE) $(MMAKEFLAGS) munge_dll_debug_info
+	$(MMAKE) $(MMAKEFLAGS) install_library
 
 .PHONY: munge_dll_debug_info
 munge_dll_debug_info:
 	for file in *csharp_code.dll; do \
-		ildasm /out:$$file.ild; \
+		ildasm /out:$$file.ild $$file; \
 		sed  's/01 00 00 01/01 00 01 01/' $$file.ild \
 			> $$file.ild.munged; \
 		ilasm /quiet /dll /debug /out:$$file $$file.ild.munged; \

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