[m-rev.] diff: fix hlc header file dependencies
Simon Taylor
stayl at cs.mu.OZ.AU
Wed Aug 8 02:45:39 AEST 2001
Estimated hours taken: 0.5
Branches: main
compiler/modules.m:
Fix another bug in the `.c_date' file change.
The `.h' file for high-level C code grades should depend
on the `.c' file for the module, not the `.c_date' file.
This fixes errors compiling tests/recompilation/nested_module_r.m
in grade hlc.gc when using nested modules.
Index: modules.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/modules.m,v
retrieving revision 1.188
diff -u -u -r1.188 modules.m
--- modules.m 2001/08/06 12:54:21 1.188
+++ modules.m 2001/08/07 15:32:26
@@ -2012,11 +2012,13 @@
% the same command that creates the .c files, so
% we just make them depend on the .c files.
%
+ module_name_to_file_name(ModuleName, ".c", no,
+ CFileName),
module_name_to_file_name(ModuleName, ".h", no,
HeaderFileName),
io__write_strings(DepStream, [
"\n\n", HeaderFileName,
- " : ", CDateFileName
+ " : ", CFileName
])
;
[]
--------------------------------------------------------------------------
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