[m-rev.] diff: make top-level assembly a target

Peter Ross peter.ross at miscrit.be
Mon Aug 20 19:30:24 AEST 2001


Hi,


===================================================================


Estimated hours taken: 0.25
Branches: main

compiler/modules.m:
    Change the dependecy ordering for the IL backend to the following.
        <top> : <top>.exe
        <top>.exe : <top>.dll
        <top>.dll : <all the other dlls>
    This allows us to build a top-level assembly which doesn't contain
    an entry point easily.  The only bug is that <top>.dll is in the
    list of <all the other dlls>, however gmake just ignores it.

Index: compiler/modules.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/modules.m,v
retrieving revision 1.194
diff -u -r1.194 modules.m
--- compiler/modules.m	17 Aug 2001 10:15:42 -0000	1.194
+++ compiler/modules.m	20 Aug 2001 09:24:58 -0000
@@ -3477,7 +3477,8 @@
 
 	{ If = ["ifeq ($(findstring il,$(GRADE)),il)\n"] },
 	{ ILMainRule = [ExeFileName, " : ", ExeFileName, ".exe\n",
-			ExeFileName, ".exe : ", "$(", MakeVarName, ".dlls) ",
+			ExeFileName, ".exe : ", ExeFileName, ".dll\n",
+			ExeFileName, ".dll : ", "$(", MakeVarName, ".dlls) ",
 			"$(", MakeVarName, ".foreign_dlls)\n"] },
 	{ Else = ["else\n"] },
 	{ MainRule =

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