[m-rev.] diff: fix missing dependency of .beam files on .hrl files
Peter Wang
wangp at students.csse.unimelb.edu.au
Thu Aug 23 14:03:56 AEST 2007
Estimated hours taken: 0.5
Branches: main
compiler/make.dependencies.m:
Make Erlang .beam files depend on the .hrl files of imported modules.
Index: compiler/make.dependencies.m
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/compiler/make.dependencies.m,v
retrieving revision 1.40
diff -u -r1.40 make.dependencies.m
--- compiler/make.dependencies.m 14 Jul 2007 02:32:43 -0000 1.40
+++ compiler/make.dependencies.m 23 Aug 2007 04:01:35 -0000
@@ -206,7 +206,10 @@
compiled_code_dependencies(Globals).
target_dependencies(_, module_target_erlang_beam_code) =
combine_deps_list([
- module_target_erlang_code `of` self
+ module_target_erlang_code `of` self,
+ % The `.erl' file will -include the header files of imported modules.
+ module_target_erlang_header `of` direct_imports,
+ module_target_erlang_header `of` intermod_imports
]).
target_dependencies(Globals, module_target_asm_code(_)) =
compiled_code_dependencies(Globals).
--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to: mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions: mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------
More information about the reviews
mailing list