[m-rev.] for review: grade compability tests in .h files

Zoltan Somogyi zoltan.somogyi at runbox.com
Mon Apr 11 14:08:51 AEST 2016



On Mon, 11 Apr 2016 13:25:07 +1000, Peter Wang <novalazy at gmail.com> wrote:
> I think it unlikely anyone tests hlc.agc.
> 
> Do you know what this problem is supposed to be?

Sorry, I don't know which problem you are referring to.

> If we could enable agc_*.m tests in hlc.gc then they would still receive
> regular testing after you enable the constraint in mercury_grade.h

The setup in tests/valid specifically disables the hlc grades that don't
specify agc due the to lack of grade-specific header files. That
won't be a problem if we make these tests only generate .c files.
We can do that both for hlc and llds grades.

> What about mmc -f instead of copying?

I presume you mean adding grade_lib/grade_*.m as arguments
to the invocation of mmc -f in the target for Mercury.modules
in the compiler directory.

Won't that generate .int*, .c, .o and other files for those modules
in grade_lib, instead of compiler?

Zoltan.




More information about the reviews mailing list