[m-dev.] trivial diff: fix problem with configure

Fergus Henderson fjh at cs.mu.OZ.AU
Thu Jul 1 18:26:28 AEST 1999


It turned out that my change to util/mkinit.c broke `mmc hello.m',
causing the configure test that mmc is working to fail.
The following change fixes that.

Estimated hours taken: 0.25

compiler/mercury_compile.m:
	When invoking `c2init', pass the name of the `.c' file rather than
	the `.m' file, since `mkinit' no longer supports passing the `.m' file.

Workspace: /home/mercury0/fjh/mercury
Index: compiler/mercury_compile.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/mercury_compile.m,v
retrieving revision 1.130
diff -u -r1.130 mercury_compile.m
--- mercury_compile.m	1999/06/30 17:12:29	1.130
+++ mercury_compile.m	1999/07/01 06:45:27
@@ -2503,7 +2503,7 @@
 	    ;
 		TraceOpt = ""
 	    },
-	    join_module_list(Modules, ".m", ["> ", InitCFileName], MkInitCmd0),
+	    join_module_list(Modules, ".c", ["> ", InitCFileName], MkInitCmd0),
 	    { string__append_list(["c2init ", TraceOpt | MkInitCmd0],
 	    	MkInitCmd) },
 	    invoke_system_command(MkInitCmd, MkInitOK),

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list