mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-15 22:03:26 +00:00
Estimated hours taken: 1 Improve the error messages for linking objects compiled in different grades. util/mdemangle.c: Check for `MR_grade_*' and `MR_runtime_grade', and if they are found, print out a message explaining the cause of the problem. But only do that if a new option `--explain-link-errors' is set, so that this message will only come out when you get a message from the linker, not when you invoke mdemangle manually e.g. via `nm *.o | mdemangle'. scripts/ml.in: Pass the new `--explain-link-errors' option to mdemangle.