Commit Graph

2 Commits

Author SHA1 Message Date
Julien Fischer
7fb0d8aba7 Fix the failure of this test case. It has been failing
Estimated hours taken: 0.1
Branches: main

tests/recompilation/nested_module_2_r_2.err_exp.2:
tests/recompilation/nested_module_r.err_exp.2:
	Fix the failure of this test case.  It has been failing
	since Peter Ross fixed a bug in mmake (r1.360 of modules.m)
	and, in any case, has been failing with `mmc --make' because
	it has the correct behaviour.
2006-02-06 03:52:56 +00:00
Simon Taylor
d26863ea86 Fix bugs in the handling of nested sub-modules with --smart-recompilation.
Estimated hours taken: 1
Branches: main

Fix bugs in the handling of nested sub-modules with --smart-recompilation.

compiler/recompilation_check.m:
	If an error occurs before the nested sub-modules of the top-level
	module are known, recompile all of the nested sub-modules.

	If there is a syntax error in a `.used' file, recompile all
	sub-modules. This makes the above change simpler, and is probably
	a good idea anyway -- all outputs from a compilation which produces
	output files containing syntax errors are suspect.

compiler/mercury_compile.m:
	When working out the list of sub-modules of the main module
	in a source file, use all the sub-modules, not just the ones
	that are being recompiled.

tests/recompilation/Mmakefile:
tests/recompilation/TESTS:
tests/recompilation/nested_module_2_r*:
	Test case.
2001-10-24 05:56:41 +00:00