[m-rev.] [reuse] diff: when to transitively read in .trans_opt files

Peter Ross peter.ross at miscrit.be
Fri Mar 23 22:26:43 AEDT 2001


Hi,


===================================================================


Estimated hours taken: 0.25
Branches: reuse

compiler/mercury_compile.m:
    Only transitively read in the .trans_opt files when no source files
    have been modified since the last compile.


Index: mercury_compile.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/mercury_compile.m,v
retrieving revision 1.175.2.17
diff -u -r1.175.2.17 mercury_compile.m
--- mercury_compile.m	2001/03/23 11:06:10	1.175.2.17
+++ mercury_compile.m	2001/03/23 11:10:56
@@ -692,14 +692,16 @@
 			% trans_opt files to determine better
 			% information.
 			{ NoModifiedSrcFiles = yes ->
-				HigherDeps = []
+				HigherDeps = [],
+				Transitive = yes
 			;
+				Transitive = no,
 				HigherDeps = list__delete_elems(
 						Imports0 ^ int_deps ++
 							Imports0 ^ impl_deps,
 						TransOptDeps)
 			},
-			trans_opt__grab_optfiles(yes, Imports1, 
+			trans_opt__grab_optfiles(Transitive, Imports1, 
 					[OrigModuleName | HigherDeps],
 					TransOptDeps, Imports, Error2)
 		;

--------------------------------------------------------------------------
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