[m-rev.] Fwd: Re: for review: add missing prereqs for .class files
Julien Fischer
jfischer at opturion.com
Fri Sep 26 23:30:50 AEST 2025
On Fri, 26 Sept 2025 at 23:21, Zoltan Somogyi <zoltan.somogyi at runbox.com> wrote:
> On Fri, 26 Sep 2025 17:19:01 +1000, Julien Fischer <juliensf at gmail.com> wrote:
> > > > Which source file or files do you mean here? The Mercury one or the generated
> > > > target language one. (The two can differ since due to source file mapping in
> > > > Mercury, Mercury source files can reside in different directories; target
> > > > language source files never should.)
> > >
> > > The Mercury one. I will clarify that.
> >
> > Ok. So, what does cur_dir mean with respect to source file mappings across
> > directories? (E.g where some of the Mercury source files are physically
> > located in another directory and we use source file mapping to point to them.)
>
> Good point. However, I just tried that, meaning that
>
> - I did mmake realclean in grade_lib,
>
> - made a subdir and moved a module there,
>
> - did mmc -f that included all the modules, including the moved one,
>
> - and then did mmake depend (which worked, sort-of) and mmake (which failed).
>
> The symptom was the missing .int3 file of the moved module,
> which wasn't either in grade_lib or its new subdir. The sort-of is because
> mmake depend did not create a .d file for the moved module either.
Cross directory source file mapping not working with mmake does not surprise
me. It does work with mmc --make.
Julien.
More information about the reviews
mailing list