diff : Fix fact table bug

Oliver Hutchison ohutch at students.cs.mu.OZ.AU
Fri May 15 17:22:56 AEST 1998


Hi, this is just a fix for a bug in the generation of .d files for code
with pragma fact_table.

Estimated hours taken: 0.01

Fix bug in generation of dependencies for files containing a pragma
`fact_table' declaration. There was an extra .o appended to the end
of the object files that the fact table depended on, this caused Mmake to
fail.

compiler/modules.m :
	Remove extraneous ".o" being output to dependency file.

Index: compiler/modules.m
===================================================================
RCS file: /home/staff/zs/imp/mercury/compiler/modules.m,v
retrieving revision 1.69
diff -u -r1.69 modules.m
--- modules.m	1998/05/15 07:07:27	1.69
+++ modules.m	1998/05/15 07:10:57
@@ -1279,7 +1279,7 @@
 				MakeVarName, ".fact_tables) ",
 				SourceFileName, "\n\n",
 				"$(", MakeVarName, ".fact_tables.cs) : ",
-				ObjFileName, ".o\n"
+				ObjFileName, "\n"
 			] )
 		;
 			[]





More information about the developers mailing list