[m-rev.] diff: change c2init output option

Simon Taylor stayl at cs.mu.OZ.AU
Sun Nov 25 01:08:22 AEDT 2001


Estimated hours taken: 0.1
Branches: main

compiler/modules.m:
	Use `--init-c-file' rather than `-o' to name the
	C file created by c2init. `-o' is being removed
	from c2init's options as part of a change to make
	c2init take the same options as ml so that users
	need not be aware of c2init.

Index: modules.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/modules.m,v
retrieving revision 1.206
diff -u -u -r1.206 modules.m
--- modules.m	16 Nov 2001 14:52:45 -0000	1.206
+++ modules.m	24 Nov 2001 13:56:49 -0000
@@ -3668,8 +3668,8 @@
 		InitCFileName, " : ", DepFileName, " ", DvFileName, " ",
 			All_C2InitArgsDepString, "\n",
 		"\t$(C2INIT) $(ALL_GRADEFLAGS) $(ALL_C2INITFLAGS) $(",
-			MakeVarName, ".init_cs) $(ALL_C2INITARGS) -o ",
-			InitCFileName, "\n\n"
+			MakeVarName, ".init_cs) $(ALL_C2INITARGS) ",
+			"--init-c-file ", InitCFileName, "\n\n"
 	]),
 
 	module_name_to_lib_file_name("lib", ModuleName, ".install_ints", no,
--------------------------------------------------------------------------
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