mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-22 12:53:47 +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.
2 lines
3 B
Groff
2 lines
3 B
Groff
OK
|