mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-10 19:33:11 +00:00
Estimated hours taken: 0.5
Fix a bug in smart recompilation which caused some interface
files to be updated even if the source file was only `touch'ed.
compiler/recompilation_version.m:
Ignore the determinism on a predicate declaration
when checking whether it has changed. recompilation_version.m
splits combined predicate and mode declarations before checking
whether the predicate's declarations have changed. The problem
only occurred if a predicate with a separate mode declaration
also had a determinism annotation on the `:- pred' declaration.
compiler/mercury_to_mercury.m:
Remove the `is det' from the `:- pred' declaration
for mercury_output_pragma_unused_args.
tests/recompilation/TESTS:
tests/recompilation/unchanged_pred_nr*:
Test case.
3 lines
83 B
Groff
3 lines
83 B
Groff
Recompiling module `unchanged_pred_nr':
|
|
file `unchanged_pred_nr.used' not found.
|